Vim
I: Insert
I: Insertion at the beginning of the line
A: Insert after cursor
A: End of line insertion
O: Next line Insert
O: Previous Row insert
X: Delete one character after
X: Delete the previous character
U: Undo
U: Undo All actions
Shift+d: Deletes all after the cursor.
^: Back to the beginning
$: Back to end of line
DD: Delete the row
5DD: Delete cursor to 5 lines
YY: Copy the row
4YY: Copy 4 rows
P: Paste
GG: Back to the first line
G: Back to the last line
Operation of the word:
DW: Delete a word
YW: Copy a word
P: Paste
Replace:
: 1, $s/root/root/g all replace root with root without g if you change the first one.
Off the signifier: \
Selective "Replacement" (1, $s/root/root/gc carriage return y/n)
Find:
/ABC finding ABC in the full text
N: Jump to the next ABC place
N: Jump to the first ABC place
Set NU Display line number
View the contents of another file
: E/etc/shadown View Shadown file
R/ETC/FS: The FS content is added below the current line.
This article is from the "night Reading Wit Hope female Ghost" blog, please be sure to keep this source http://more3.blog.51cto.com/9929586/1614687
Common shortcut keys for vim operation