The P key is pasted after the cursor
The P key is pasted before the cursor
V to enter line visual mode, after which you can select text by row
M key to place tag, followed by A-Z to name tag
' Key (reverse single quotation mark, above Tab key) followed by A-Z, you can jump to this mark
' Key (single quote) followed by A-Z to jump to the beginning of the line where the tag is located
: Marks lists all the tags
Y-Key to copy the selected text
Y key or yy the entire line where the cursor is copied
! Key in Visual mode, first select the text, press! The key is followed by a system command that takes the selected text as input and then replaces the selected text with the output from the command execution.
Under normal mode, press! Key followed by a jump action, the current cursor is the line to the action jump as input, and then enter the system command, the output of command execution to replace the input
!! Filter the line where the current cursor is located
: Edit followed by a file name that will close the current file and open the specified file, the current file needs to be saved manually or forced not to save
: View followed by a file name that closes the current file and opens the specified file as read-only, and the current file needs to be saved manually or forced not to save
When you open a file using the VIM command on the system command line, you can take multiple filenames after vim, and the first file is displayed by default when you press ENTER
: Next edits the next file, the current file needs to be manually saved or forced not saved, the specified save can be used: Wnext, forced not save can be used: next!
:p Rev edits the previous file, similar to: Next
: First editing of a file
: Last edit Final file
N ctrl-^ Edit the nth file, if the previous number is not added to the previous file
: Set Autowrite is automatically saved so that Vim automatically saves changes whenever you want to leave the current file
: Set Noautowrite off Auto-save
: Args lists the series of files currently being edited, and the file you are currently in is enclosed in brackets [].
: Match matches the text highlighting for a given pattern, for example: Match error/todo/will highlight all TODO in syntactically incorrect colors
: Highlight to see which highlighted names are available
: Match none Clear: match
Vim Editor Beginner (iv)