General
<leader> |
space |
<leader>w |
Save buffer |
<leader><leader> |
noh |
<leader>cd |
cd to buffer dir |
jk |
ESC |
:W |
Write as sudo (linux) |
{to-m} |
Text Object or Motion |
Windows
<C-h> |
Navigate left |
<C-l> |
Navigate right |
Buffers
<leader>bn |
New buffer |
<leader>bd |
Close current buffer |
<leader>ba |
Close all buffers |
<backspace> |
Go to alternate buffer |
<leader>x |
Scratch txt buffer |
<leader>s |
Scratch sql buffer |
<leader>d |
Scratch markdown buffer |
<leader>bs |
Scratch buffer |
<leader>h |
Previous buffer |
<leader>l |
Next buffer |
Tabs
<leader>tn |
New tab |
<leader>te |
New Tab (current buffer dir) |
<leader>to |
TabOnly |
<leader>tc |
Close Tab |
<leader><bs> |
Go to alternate Tab |
Miscellaneous
F3 |
Neoformat |
F4 |
UndotreeToggle |
F8 |
Toggle QuickFix Window |
F9 |
Toggle CtrlSF Window |
F10 |
Rotate ColorSchemes |
F11 |
Toogle TagBar |
F12 |
Tag navigation |
<M-0> |
Set font bigger |
<M-9> |
Set font smaller |
Commands
:RainbowToggle |
Toggle rainbow colors |
:VisualBlock |
Enter visual mode (xterm) |
:ListLeaders |
List all leader mappings |
RemoveTrailingSpaces |
Remove spaces |
:{Range}SortByWidth |
Sort lines by witdh |
:h fztips |
Custom tips |
:h fzvimtips |
Aonther tips collection |
|
|
Editing - Normal mode
"p |
Like vi"p |
'p |
Like vi'p |
(p |
Like vi(p |
<leader>p |
Paste from 0 register |
g= |
Equalize entire buffer |
gQ |
Format entire buffer |
<leader>m |
Remove bad formatting ^M |
Editing - Visual Mode
* |
Search Visual Selection |
# |
Reverse Search Visual Selection |
<leader>r |
Search and Replace Selection |
<leader>fr |
Find Replace Visually |
Searching
/ |
/\v magic search |
? |
?\v magic search |
<leader>* |
Search current word with Ctrlsf |
<leader>/ |
Search in files with Ctrlsf |
<leader>f |
Search buffer using Ilist |
ym |
Yank search matches |
YM |
Yank reverse search matches |
dm |
Delete search matches |
DM |
Delete reverse search matches |
c* |
Change current word and . for next |
|
|
Emmet Plugin
,, |
Generate html block (2 commas) |
vim-lion
gl{to-m}= |
Right align with = |
gL{to-m} |
left align with = |
vim-abolish
Subvert |
Search Command |
cr{case} |
Coercion, change case |
vim-exchange
cx{to-m} |
Works in pair |
cxx |
Exchange line |
X |
Visual mode |
vim-sandwitch (surround)
cs"', css |
Change surround " to ' |
cstt |
Change tag surrounding |
ys{to-m}" |
Add surround " |
ds", dss |
Delete surround " |
S" |
Visual mode surround |
yss" |
Surround line |
Transpose
Tranpose |
simple |
TranposeCSV |
csv |
TranposeWords |
word |
vim-gutentags
<C-$> or F12 |
Tag navigation |
Custom text objects
q |
Quote (ciq) |
c, C |
Column (vic, viC, vac, vaC) |
i |
Indent (cii) |
l |
Line (cil) |
e |
Entitre (cie) |
Targets |
cin(, ci=, ci+, ci_, ... |
vim-unimpaired
( and ) |
map keys |
(* |
Previous * =t, b,... |
)* |
Next * = t,b,.. |
(e or )e |
Exhange lines |
(space |
Insert blank line |
yo* |
Toggle options * = n,r,w,x, ... |
Miscellaneous
<C-p> |
Fuzzy Files |
<leader>, |
Fuzy Buffers |
<leader>u |
Fuzzy MRU |
<leader>t |
Fuzzy Tags |
<leader>; |
Fuzy Lines |
<leader>co |
Fuzzy Commands |
Arrow keys |
Move visual selection |
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by fraz