The Vim editor is a command line-based tool that is an enhanced version of the legendary editor vi. Although there are many rich text editors with graphical interfaces, familiarity with Vim can be helpful to every Linux user - whether you are an experienced system administrator or a novice user who has just started using Raspberry Pi.
This lightweight editor is a very powerful tool. In the hands of an experienced user, it can do incredible things. In addition to regular text editing functions, it also supports some advanced features. For example, regular expression-based search and replacement, encoding conversion, and programming features such as syntax highlighting, code folding, etc.
There is a very important point to note when using Vim, that is, the function of the keys depends on the current "mode" of the editor. For example, when you enter the letters j in "Normal Mode", the cursor will move down one line. When you enter characters in "insert mode", it is just normal text entry.
Here is a cheat sheet to help you get the most out of Vim.
Basic operations Arrow key Browse documentation Insert text Special Insertion Delete text
Isn’t this enough to satisfy you? Don’t worry, we’ve put together a downloadable cheat sheet just in case. Download Vim shortcut key cheat sheet
The above is the detailed content of Vim shortcut key list. For more information, please follow other related articles on the PHP Chinese website!