goto start
[[
goto end
]]
goto 1st line
gg
goto {N} line
{N}G
goto last line
G
goto first character of line
0
goto last character of line
$
search
/string
next match
n
prev match
N
multiple {str} {N} times
{N}i{string} ESC
auto indent
=G
insert after
o
insert before
O
remove character
x
repeat last command
.
replace {A} with {B} in line {M} to {N} ('g' stands for replace all)
:{M},{N}s/{A}/{B}/g
replace {A} with {B} in line {M} to end
:{M},$s/{A}/{B}
2013/09/20
我的vim筆記
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言