This is a draft cheat sheet. It is a work in progress and is not finished yet.
basic
|
insert text/i at beginning of line |
|
append text/a at end o line |
|
delete/d until eol |
|
change/c until eol |
|
left/down/up/right |
|
go to [line number]/start of file/eof |
|
insert line below/above current line |
|
go to beginning/end of line |
Psidium's Keys
K |
search the word under K |
[space]w |
:update |
[space]q |
:quitall |
|
|
Plugin Commands
:SyntasticCheck |
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
|
start recording to {register} (some letter) |
|
stop recording |
|
play macro recorded in {register} |
|
DOT! repeat last action |
vim-surrouding
ds" |
delete surroundings " |
ys" |
you surround " (add " ) |
|
change surrounding " for ' |
|