The command vim can start the VIM editor normally we use Vim in the form of a vim target file path if the target file exists, use VIM to open the file if the destination file does not exist, then create and open the file. Vim has three modes: 1, Command mode ESC2, Insert mode i3, ex mode : After Vim starts, it enters command mode by default, and any mode can be returned to command mode by pressing ESC. Common commands for Command mode are as follows: I insert text before the cursor o insert a new line below the current line (into insert mode) DD Delete entire line yy put the contents of the current line into the buffer (copy) n + yy Place n rows from the line into the buffer p place the contents of the buffer in the position of the cursor (sticky) u undo the last action R replace the current character/ find keyword (click n Move) ex mode : Press the: Key in the mode of the command to enter the EX mode. You can save changes and exits in this mode. : W Save current changes: Q exit (there will be a hint when not saved): q! Force exit does not save: X Save and exit: Set number displays line numbers:! System command: SH switch to command line (use CTRL + D to switch to VIM)
Introduction to the installation of a force artifact vim