我的vim常用操作
move
0
jump to line header^
jump to line header without blank$
jump to end of linew
skip next word heade
skip 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
o
insert new lineO
insert new line above current linea
insert after cursorcw
replace cursor to word end
operation
.
repeat last operationN<command>
repeat cmmand N:suspend
ctrl + z
suspendfg
recover suspend
delete
de
delete word
plugin
:BundleInstall
:BundleUpdate
:BundleClean
:BundleList
:BundleSearch
code
Ctrl-I
orgf
go to a file under the cursorCtrl-O
go to previous file
skills
add comment to code
v
virtual mode, select target- 【Control + v】
I
//
- 【ESC】 + 【ESC】
replace word
:%s/foo/bar/g