View File encoding <: Set fileencoding>
Highlight the current row set cursorline
Highlight the current column set cursorcolumn
Delete linefeed J
Definition of work iskeyword
Exchange two characters in XP
Move to the end of GE <> E blank Definition
Blank and bounded header B <> W
Lowercase characters on the word decomposition symbol
Jump cursor to the character specified in the current row
F XXXX move down
F xxx can be used up;, repeated
Move to the top bot m of the current screen
H ml
List the history of the conversion: jumps
Mark a location ma a ~ in the text ~ Z is a usable tag name. Use 'a to jump to the tag.
Use: marks to view the tag list
C = d + I
X indicates DH (delete the character on the left of the current cursor)
D Represents d $ (content deleted to the end of the row)
C stands for C $ (content modified to the end of the line)
S stands for Cl (modify one character)
S stands for CC (modify a whole line)
Repeat the previous command
Y replication and D use the same
In visual, the cursor switches to O at both ends
DAW deletes a wrod, no matter the cursor is on the letter of the word.
Text object
PATH variable
When you use GF to view the header file, VIM searches in path.
Add the specified directory to the path
E.g. Set path + =/usr/local/include/
Note that multiple directories must be separated by commas. If the address is incorrectly written, VIM will not give a warning.
E. g set path + =/usr/local/include /,~ /Local/include
Buffer
Vim can be at least doubled in productivity. Because it supports local principles.
Return to the previous Buff: B #
Specify Vim settings in text (mode line)
Sometimes Vim cannot identify the true type of the file through the filename extension. This means that a pattern line can be added to the file,
To specify the file type. When opening a file, VIM will display several lines at the beginning and end of the file (the number of lines is determined by the 'modelines 'option, and the default value is 5 lines)
It is used to detect rows with special Vim tags, which are called pattern rows. If it is detected, use the option value defined in The mode line to modify the options of the buffer.
You can pay attention to the Vim Help page. The last line of each file is the mode line. E. g.
Specify the file type:/* VIM: Ft = C */
This statement is annotated with "/**/", so compilation is not affected. "Ft" is short for "filetype". Many Commands and options in Vim are abbreviated for ease of use.
Note the space between "/*" and "VIM. There must be at least one space between "*/" and "Ft = C". This is the format requirement of the mode line. For more information, see ": Help modeline ".