vim-cheat-sheet-en.pdf

(225 KB) Pobierz
Vim Visual Cheat Sheet
:6
#
e
W
%
{
%
M
0
}
'x
Ctrl-N
gd
Movement/Range
Character
H
zt
h
j
k
l
v
V
Mode Commands
ESC
C-[
C-v
*
k
h
j
l
Ctrl-B
word, WORD(all non-blank ch)
w
W
b
B
e
Line
0
^
zz
$
E
next/prev word
next/prev WORD
end of word/WORD
i
R
a
A
y
d
c
x
D
C
p
J
r
>
<
.
u
:w
:q
:e x
:n
:h
:xx
enter normal mode
enter visual mode
enter visual line mode
enter visual block mode
enter insert mode
enter replace mode
append
append at end of line
yank/copy (range)
delete/cut (range)
modify (range)
delete/cut (character)
delete to end of line
modify to end of line
paste after cursor
join lines
replace (character)
indent
indent leftward
redo
undo
General Commands
$
begin/end of line
begin (non-blank) of line
Paragraph, Block
{
}
prev/ next paragraph
begin/end of block
^
fi
b
w
[{
[{
]}
%
matching parenthesis
Window, File
scroll to
zt
top
scroll to
zz
middle
zb
scroll to
bottom
prev/next page
EX Commands
save(:wq save and quit)
quit(:q! quit anyway)
edit file x
new window
vim help
jump to line #xx
]}
mx
Ctrl-W p
:split
Ctrl-W k
H
top of win
Ctrl-F
M
mid of win
L
btm of win
L
zb
C-B
gg
mx
G
'x
C-F
begin/end of file
mark/jump to x
Auto-completion [insert mode]
C-N
C-X C-F
C-P
Ctrl-W j
Ctrl-W l
Search
*
#
find current word
backward/forward
auto-complete
next/prev keyword
auto-complete file
name
vertically/horizontally
split
Split window
:vsp
:diffs
C-W p
C-W w
:vsplit
:diffsplit
/fooCl
fx
/xxx
to character x to right
to definition of current
word
:sp
gd
split and diff
to last accessed window
to next window
search xxx
next/prev search
result
Created by vgod, Dec. 2009
n
N
Zgłoś jeśli naruszono regulamin