Vim Use
New file
#vim hello.c
Insert mode
Press the I key, the bottom appears--insert--
Line break: Press ENTER
Delete character: press X in normal mode
Delete whole line: press DD
Redo Delete: Press U
Cancellation command: Ctrl+r to u consequences make up
Copy: Y y2w copy 2 word y copy contains trailing space yy copy line
Paste: P
Exit Save: Press ESC, enter: WQ
Quit without saving: Press ESC, enter: q! Note There's an exclamation point ending
Find::/find Content
Specify line:: 5 Press Enter line 5th
Indent: Enter at current line: Re-enter: Set cindent shiftwidth=4 and then enter, so the next line presses the space bar according to the set indent input or the edit mode.
Tab Space Quantity:: Set tabstop=2
Show line numbers:: number
VIMRC the configuration file.
Note Files edited under Windows to Linux under the conversion command: Dos2unix file name