Copy, Cut, and Paste In Vim / Vi

Copy, Cut, and Paste In Vim / Vi

One of the most used operations when working with text files is copy, cut, and paste operations. Vim provides a lot of different and detailed features about copy, cut, and paste operations by using commands and key shortcuts. These copy, cut, and paste operations are related to each other and generally used in a row. … Read more

Where Are .vimrc and vimrc Files?

Where Are .vimrc and vimrc Files?

Vim is a popular command-line text editor that provides a lot of advanced features. These features can be configured in different ways from the Vim interface or command line or configuration files named .vimrc and vimrc . Vim Configuration Files Vim basically provides 2 configuration files. The first configuration file is named .vimrc and used … Read more

How To Save A File In Vim/Vi?

How To Save A File In Vim/Vi?

Vim is a useful command-line text editor. As a featureful text editor, Vim/Vi provides different ways and commands in order to save a file. In this tutorial, we examine how to save the file with the same name or a different name or exit after saving the file. Save File with write Command The write … Read more

How To Save File and Quit In Vim/Vi?

How To Save File and Quit In Vim/Vi?

Vim or Vi is the most advanced text editor designed for command-line usage. Vim with its predecessor Vi provides a lot of features that are more than a GUI-based text editor. When you complete the job on a file you generally save the file and exit or quit. Vim provides easy-to-use shortcuts and commands for … Read more

How To Search In Vim/Vi?

How To Search In Vim/Vi?

As a command-line tool searching different terms, words, sentences in a text can be done by using commands. Vim is a complex text editor and provides different search features like forwarding, backward search, whole word search, case-insensitive search, etc. Basic Search In the basic search, we will provide some simple terms in order to search … Read more

How To Exit From Vim?

How To Exit From Vim?

Vim is a popular command-line text editor. As a command-line editor, Vim is managed and used with commands and keyboard shortcuts. Exiting from vim can be done in different ways. In this tutorial, we examine different exit methods like save and exit, exit without saving, exit by saving specific changes for the specified lines, and … Read more

How To Undo and Redo In Vi/Vim?

How To Undo and Redo In Vi/Vim?

The vim editor provides the ability to undo and redo changes. The undo operation will revert back to the recently changed and the redo operation will do the reverse of the undo which means changes will be restored back from undoing operations. Make Some Changes For this tutorial, we will open a file with vim … Read more

Go To The Specified Line Numer In Vi/Vim

Go To The Specified Line Numer In Vi/Vim

Vi/Vim is a command-line text editor which is managed via keyboard shortcuts and commands. In order to move the cursor into different or specified lines, you should use the keyboard shortcuts or commands. In this tutorial, we will examine how to move or jump into a specified line in vi/vim. Start Vi/Vim By Jumping Specified … Read more

How To Delete Line In Vi/Vim?

How To Delete Line In Vi/Vim?

Vi or vim provides different commands for operations. One of these operations is deleting the line. Vi or vim provides different commands to delete single or more lines in different ways. Delete Current Line The command to delete the current line in Vi/Vim is dd keys. The current line is the cursor’s current location. But … Read more