|
h, j, k, l
|
left, up, down, right
|
|
Shift + Up/Down
|
page up/down
|
|
w / W
|
jump forwards to the start of a word
|
|
e / E
|
jump forwards to the end of a word
|
|
b / B
|
jump backwards to the start of a word
|
|
^/0 / $
|
jump to start/end of line
|
|
gg / G
|
go to first/last line of the file
|
|
6G
|
go to line 6
|
|
Ctrl + b/f
|
page up/down
|
|
Ctrl + u/p
|
half page up/down
|
|
:vs file
|
vertical split with file/directory
|
|
:Vex
|
vertical split at current file
|
|
%
|
create a new file
|
|
R
|
rename file under cursor
|
|
D
|
delete file under cursor
|
|
t
|
open file under cursor in a new tab
|
|
i / a
|
insert before/after cursor
|
|
I / A
|
insert at the beginning/end of line
|
|
o / O
|
insert after/before current line
|
|
s
|
delete character
|
|
cw
|
delete until end of word
|
|
c$
|
delete until end of line
|
|
cc / S
|
delete current line
|
|
gf
|
open file under cursor
|
|
Ctrl-w gf
|
open file under cursor in a tab
|
|
yw
|
yank until end of word
|
|
y$
|
yank until end of line
|
|
y0
|
yank from beginning of line
|
|
yy
|
yank a line
|
|
p / P
|
paste after/before cursor
|
|
x / X
|
cut current/previous character
|
|
dw
|
cut until end of word
|
|
d$ / D
|
cut until end of line
|
|
d0
|
cut from beginning of line
|
|
dd
|
cut a line
|
|
"add
|
cut a line into register "a"
|
|
""d
|
delete current selection
|
|
vi(
|
select text inside parentese
|
|
v2i(
|
select text inside 2nd level of parentese
|
|
va(
|
select text and parentese
|
|
vat
|
select text and tag (HTML)
|
|
ci{
|
cut text in brackets and edit
|
|
/pattern
|
search pattern
|
|
?pattern
|
search pattern backward
|
|
*
|
search current word
|
|
n / N
|
next/previous search
|
|
:%s/old/new/g
|
replace
|
|
:%s/old/new/gc
|
replace with confirmations
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.