VI / VIM Editor The most popular document viewer and editor in Linux. Here’s a look at some of the most commonly used features.
You can add or delete content through the input mode.
If you want to end input mode, press esc key
VI / VIM performs the file mode by entering the following command. You can enter the following mode through double quotes. In the file mode, you can do save or quit current file. and you want to exit file mode, press esc key
wSave the file.
qQuit VI / VIM.
You can force exit, save, etc. with! Frequently used situations have been modified. If you proceed through q, you will not be able to exit because of the modifications. This will force exit input!q and you can without saving.
Find the match value entered in the current file. If there are find values, press enter
You can jump to the next and previous values through n and N key
n - next N - previous
press d twice
This function is used when you want to delete several items. You can delete them by line by pressing d key twice.
There are many other convenient shortcuts, but basically you don’t have to worry about this.