This blog will write some useful VIM tips for myself.

Move cursor in vim

h,j,k,l for Basic Directions.

w,b for next/pre word.

C-B, C-F pre/next page.

gg, G to begin and end of the file.


i,a,o for insert, append, new line editor mode.

v, visual mode, with cursor move to select charactors.

V, visual mode, select one line.

y, copy selected area.

p, paste after cursor.

g=G, auto indent current file.

x,yd: delete lines from x to y.

Split window

:vsp, Vertically split window.

:sp, Horizontally split window.

C-ww, Change to next window.