linux下viエディタコマンド大全
, ,vim , vim :
:qx , x
q
@x x
, normal :qx , , q
, @x , , , @x20, 20 。 。
vim , minibuffer , , 。
:tabe fn fn
gt
gT
:tabr
:tabl
:tabm [N] tab N tab
, , eclipse, ue !
ctrl+w s
ctrl+w w
ctrl+w q ( , )
ctrl+w v
vim , , , :w 。
:e file file
:bn
:bd ( )
:sp fn , fn
:w ,
:wq
:x
:q , ,
:q! ,
/pattern pattern
?pattern pattern
n ( / , ,? )
N ( )
:%s/old/new/g , old new
:%s/old/new/gc , old new,
dd
dw (word)
x
X
D
yy , , , 6yy, 6
yw
y$
p
P
]p ,vim
"a / a ,
: , +, vim "+p, + , 。
vim , , 。
h,j,k,l , , ,
ctrl-f
ctrl-b
% , {, }
w ,
W , , end-of-line
e
E ,
b
B ,
0 , , 0
^
$
gg
gd
[N]G N , 0G, gg,100G 100
fx x ,
; f , fx
tx fx , x
Fx fx
),( /
* ,
# ,
`.
H
M
L
ma a
`a a
r
J
cc
cw ,
c$ ,
s
S
xp
u
ctrl+r
.
~ ,
g~iw
gUiw
guiw
>>
<< ( tab )
==
i
I ,
a ,
A ,
o ,
O ,
Esc
v ,
V ,
ctrl+v , , UE
o
U
O
aw
ab ,
aB {}
ib ,
iB {} , {}
>
<
y
d
~
(変換元http://zhidao.baidu.com/question/453564721.html)