Vim with spf13 cheat sheet
Keys | description |
---|---|
i |
insert before the cursor |
I |
insert at start of line |
a |
insert after the cursor |
A |
insert at start of line |
o |
insert line below |
O |
insert line above |
u |
undo |
C-r |
redo |
v |
visual mode |
C-v |
visual block |
V |
visual line |
enter |
enter visual line with block selected |
y |
yank |
esc / C-c |
back to normal mode |
h |
move cursor to the left |
j |
move cursor down |
k |
move cursor up |
l |
move cursor to the left |
d / x |
delete |
p |
paste |
r |
replace char at cursor |
s |
replace and continue insert |
/ |
search forward |
? |
search backward |
Windows | description |
---|---|
:vsplit / C-w v |
split window vertically |
:split / C-w s |
split window horizontally |
C-w C-w |
cycle through windows |
:q |
quit window |
:b number |
open buffer number |
:bn |
move to next buffer |
:bp |
move to previous buffer |
:bd |
delete current buffer |
:bw |
wipe out buffer (clean store) |
:bp|bd # / :bn|bd # |
delete buffer without closing window |
Combos | description |
---|---|
ggVG |
select all |
ggVGy |
yank all |
ggguG |
make all text lowercase |
Commands | description |
---|---|
:noh |
clear highlighted |
:%y+ |
yank all |
:e filename |
openfile |
, e |
open NERDTree |
⌃
-⌃
- Control Key symbol
⌘
-⌘
– Command Key symbol⌥
–⌥
– Option Key symbol⇧
–⇧
– Shift Key symbol