Show Menu
Cheatography

My Vim Cheat Sheet (DRAFT) by

My Vim cheat sheet

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Movemement

e
to end of word
w
forward to beginning of next word
3w
forward 3 words
b
backward to beginning of next word
ß
end of line
0
beginning of line
^^
first non-black char of line
)/(
forwar­d/back one sentence
ö/ä
forwar­d/back one paragraph
G
end of file
gg
beginning of file
%
to the corres­ponding ({[...]})
ü
to definition (by ctags)
Ü
back from definition
,a
switch header <-> source
 

Awesome

,f
Open file (CtrlP)
,cf
clang-­format
,gc
git add + commit
,gp
git push
,gd
git diff
,gs
git status

Edit

,u
switch case WORD
,U
switch case LINE
~
switch case CHAR
J
join line with next one

Search & Replace

*
Search same word under cursor
:%s/th­is/­that/g
Replace this by that whole file