Cheatography
https://cheatography.com
Vim shortcuts and keybings for my current config.
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Mini
Explorer |
<leader>ee |
Open mini explorer |
<leader>ef |
Open mini explorer in current file |
|
Surround |
(vim motions) |
sa |
Add surrounding (normal and visual) |
ds |
Delete surrounding |
sf |
Find surrounding (right) |
sF |
Find surrounding (left) |
sh |
Highlight surrounding |
sr |
Replace surrounding |
|
Splitjoin |
(vim motions) |
sj |
Join arguments |
sk |
Split arguments |
File explorer and custom vim motions.
Ufo
za |
Toggle fold at cursor |
zR |
Open all folds |
zM |
Close all folds |
Oil
h,j,k,l |
Movement |
<M-h> |
Split |
q |
Close |
- |
Open oil |
<leader>- |
Open oil floating |
|
|
Luasnip
<C-e> |
Abort |
<C-d> |
Close docs |
<C-f> |
Scroll docs up |
<C-b> |
Scroll docs down |
<C-j> / Down |
Next item |
<C-k> / Up |
Previous item |
<CR> |
Confirm |
<C-E> |
Select autocomplete |
Git stuff
]h |
Next hunk |
[h |
Previous hunk |
<leader>gd |
Diff this |
<leader>gD |
Diff this~ |
<leader>lg |
Open Lazygit |
<Leader>gl |
Lazygit logs |
<leader>gbr |
Pick and switch git branches |
Snacks
File operations |
<leader>rN |
Fast rename current file |
<leader>dB |
Delete or close current buffer |
|
Picker |
<leader>pf |
Find files |
<leader>pc |
Find config files |
<leader>ps |
Grep words |
<leader>pws |
Search visual selection or word |
<leader>pk |
Search keymaps |
|
Other |
<leader>th |
Pick color scheme |
<leader>vh |
Help pages |
Harpoon
<leader>a |
Add to harpoon list |
<C-e> |
Open harpoon list |
<C-p> |
Harpoon previous |
<C-n> |
Harpoon next |
Auto Session
<leader>wr |
Restore session |
<leader>ws |
Save session |
|