1. Basic
1.1, first, learn to move
On-screen movement:
Up and down around H,j,k,l,
Screen position h,m,l,
Roll Screen Zz,zt,zb
Deterministic movement within the entire article:
Text first GG, end G, nth row ng
Efficient movement within the entire article:
Corresponding brackets%, same next *, same as Previous #,
Search/pattern, Next n
Move within a single line:
0,^,$,g_,
E,w,e,w,
Fc,fc,tc,tc
1.2, then, learn to delete and change
Add: I,a,o,o
Deletion: X,DW,DD
Change: CW
Paste: P,p
1.3.: Enter ed mode
Save to Exit wq,q!,
1.4.
Undo U, Redo Ctrl+r
Repeat the last action.
2. Advanced
2.1 n<command>
2.2<start position><command><end position>
2.3 Enter visualization mode v,ctrl+v,
2.4 Split screen: split,:vsplit, switch back and forth ctr+
3.
Reference:
Concise Vim Training Guide http://coolshell.cn/articles/5426.html
(not to be continued)
Vim Summary Summary