Show Menu
Cheatography

Psidium's-Vim Keyboard Shortcuts (DRAFT) by

My vim keys and plugins

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

basic

i/I
insert text/i at beginning of line
a/A
append text/a at end o line
d/D
delete/d until eol
c/C
change/c until eol
h/j/k/l
left/d­own­/up­/right
[numbe­r]gg/ G
go to [line number­]/start of file/eof
o/O
insert line below/­above current line
0/$
go to beginn­ing/end of line

Psidium's Keys

K
search the word under K
[space]w
:update
[space]q
:quitall
 

Plugin Commands

:Synta­sti­cCheck
check syntax
:Gcommit
git commit
:Gstatus
git status (
-
to add or remove file)
:Gdiff
git diff from last commit

Commands

:%s/a/b/gc
subtitute
a
for
b
globally and confirming

Navigation

^E
scroll the window down
^Y
scroll the windows up
^B
scroll up one page
H
move the cursor High in the window
M
move the cursor Middle in the window
L
move the cursor Low in the window
 

Motion

a
all
i
inside
t
unTil
f
find foward
F
find backwards

Repetition

q {register} 
start recording to {register} (some letter)
q
stop recording
@ {register}
play macro recorded in {register}
.
DOT! repeat last action

vim-su­rro­uding

ds"
delete surrou­ndings "
ys"
you surround " (add " )
cs"'
change surrou­nding " for '
Works more as a motion