Vim简单使用

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013867301/article/details/67639752
vimtutor
move
h j k l
jump
CTRL+O CTRL+I 跳转到上次所处的位置
Ctrl+G (num)gg (num)G
% 跳转到对应的括号
quit
ESC :q! :wq :w (fileName)
search
/(string) ?(string) /(string)\c n、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、X i、I o、O a、A v
:w (filename) :r (filename)/:r (command)
operator
u、U、Ctrl+R r、R c、C
d,dd p y
motion
w e $ 0 ^
combination
(num)gg
(num)move (num)motion
(operate)(num)(motion)
d(num)(motion) d(num)(move) dd d(num)d
help
F1 :help
Ctrl+W Ctrl+W
:help w :help c_Ctrl_D :help insert-index :help user-manual
other
:(letters)+Ctrl+D TAB

猜你喜欢

转载自blog.csdn.net/u013867301/article/details/67639752