我的vim常用操作
move
0jump to line header^jump to line header without blank$jump to end of linewskip next word headeskip next word end%jump match brackets*jump to next same word with cursor#jump to previous same word with cursorf<letter>jump to letter eg: fa<num>f<letter>jump to letter appear third time eg: 3fa
insert
oinsert new lineOinsert new line above current lineainsert after cursorcwreplace cursor to word end
operation
.repeat last operationN<command>repeat cmmand N:suspendctrl + zsuspendfgrecover suspend
delete
dedelete word
plugin
:BundleInstall:BundleUpdate:BundleClean:BundleList:BundleSearch
code
Ctrl-Iorgfgo to a file under the cursorCtrl-Ogo to previous file
skills
add comment to code
vvirtual mode, select target- 【Control + v】
I//- 【ESC】 + 【ESC】
replace word
:%s/foo/bar/g