This is a draft cheat sheet. It is a work in progress and is not finished yet.
Editor Config
|
|
toggle paste mode |
|
|
toggle whitespace characters |
|
|
toggle line numbers |
|
|
toggle rel. line numbers |
|
|
disable hl till next search |
Navigation
|
|
move around buffers |
|
|
next | previous blank line |
Buffers
|
|
next buffer |
|
|
previous buffer |
|
|
close buffer |
|
|
diff since last write |
Insert Mode Shortcuts
|
|
to line beginning |
|
|
to line end |
|
|
change entire line |
lion.vim
|
spaces left | right to align |
|
align '=' till blank line |
|
align ',' within ( |
vim-surround
cs [target] [replacement]
|
replace surround |
|
remove surround |
|
surround word |
|
surround line |
Tags
use <tag>
e.g. <div>
for replacement
use t for target
targets.vim
|
change in target from cursor |
|
change inside target |
|
change include target |
|
change around outside of target |
Pairs: [ ], { }, ( ), < >, t for tags e.g <div>
Quotes: ' " `
Separator: , . ; : + - = ~ _ * # / | \ & $
Arguments: a
(text surrounded by braces and commas)
vim-commentary
|
comment out using motion |
|
comment out a line |
|
comment out paragraph |
|
comment out a range |
Replace
|
|
replace word under cursor |
|
|
replace last search |
|
|
replace |
Ferret
|
|
close quick fix |
|
|
find in CWD |
|
|
find in buffer |
|
|
find word under cursor in CWD |
|
|
find word under cursor in buffer |
|
|
replace results in quick fix |
NerdTree
|
|
toggles NERDTree |
|
|
moves focus to NERDTree |
|
|
open (focus in NerdTree) |
|
|
open [silently] in new tab |
|
|
open [preview] h-split |
|
|
open [preview] v-split |
|
|
move CWD to folder |
|
|
move root to CWD folder |
|
|
refresh folder | root |
|
|
toggle hidden files |
Vifm
|
|
open buffer using vifm |
|
|
open split using vifm |
|
|
open tab using vifm |
CtrlP
|
|
run CtrlP |
|
|
next | previous mode |
ALE Linter
|
|
auto-fix linter issues |
|
|
toggle ALE Gutter |
vim-gitgutter
|
|
toggle the gutter |
|
|
next | previous hunk |
|
|
stage hunk |
|
|
undo hunk |
|
|
preview hunk |
|
|
close preview |
fugitive
:G |
:Git |
git alias |
[leader]gd |
:Git diff |
open git diff in file |
[leader]gds |
:Gdiffsplit |
open diff side-by-side |
|