Four steps to learn Vim
1 Adaptation
2. Comfortable
3. Feeling good, strong, and fast
4. Use advanced Vim Functions
Level 1
I-> insert mode. Press ESC to return to normal mode.
X-> Delete the character where the cursor is located
: WQ-> Save and exit
DD-> Delete (copy) The current character
P-> Paste
These commands can be adapted to the second level.
Level 2
1 insert mode variant command:
A-> Insert after the cursor
O-> Insert a new row after the current row
O-> Insert a new row before the current row
CW-> replace from cursor to word end
2 basic mobile commands
O-> jump to the first line
^-> Jump to the first non-empty character in the row
$-> Jump to the end of the row
G _-> jump to the last non-null character of the row
/Pattern-> Search for Pattern
3 copy/paste
P-> paste it before the current position. Remember that P is pasted at the current position.
YY-> copy the current row, which is simpler than DD and P commands.
4. Cancel/restore
U-> cancel
<C-r> restore
5. Load/save/launch/modify files (cache)
: E (file path)-> open
: W-> Save
: Saveas (file path)-> Save to this file
: X, ZZ or: WQ-> Save and release
: Q! -> Released but not saved
: BN (contrast to: Bp)-> display the next File Cache
Level 3
2dd-> Delete two rows
3 p-> paste the text three times
100 idesu [ESC]-> "desu desu desu"
.->
3->
---------------------------------- Continue to update -------------------------
Reference:
Http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/
Vim Learning Guide