您的位置:首页 > 其它

Vim简单使用

2017-05-04 20:35 127 查看
vimtutor
move
hjkl
jump
CTRL+OCTRL+I跳转到上次所处的位置
Ctrl+G(num)gg(num)G
%跳转到对应的括号
quit
ESC:q!:wq:w (fileName)
search
/(string)?(string)/(string)\cn、N
:set ic:set noic
:set hls is:nohlsearch
special change
:s/old/new/g:s/old/new
:(linenum),(linenum)s/old/new/g
:%s/old/new/g:%s/old/new/gc
shell command
:! + shell_command:r+cmd
edit
x、Xi、Io、Oa、Av
:w (filename):r (filename)/:r (command)
operator
u、U、Ctrl+Rr、Rc、C
d,ddpy
motion
we$0^
combination
(num)gg
(num)move(num)motion
(operate)(num)(motion)
d(num)(motion)d(num)(move)ddd(num)d
help
F1:help
Ctrl+W Ctrl+W
:help w:help c_Ctrl_D:help insert-index:help user-manual
other
:(letters)+Ctrl+DTAB
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: