Show Menu
Cheatography

Vim shortcuts Cheat Sheet (DRAFT) by

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
<le­ade­r>ee
Open mini explorer
<le­ade­r>ef
Open mini explorer in current file

Surround
(vim motions)
sa
Add surrou­nding (normal and visual)
ds
Delete surrou­nding
sf
Find surrou­nding (right)
sF
Find surrou­nding (left)
sh
Highlight surrou­nding
sr
Replace surrou­nding

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
Folds

Oil

h,j,k,l
Movement
<M-­h>
Split
q
Close
-
Open oil
<le­ade­r>-
Open oil floating
File explorer

LaTeX utilities

 
 

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 autoco­mplete

Git stuff

]h
Next hunk
[h
Previous hunk
<le­ade­r>gd
Diff this
<le­ade­r>gD
Diff this~
<le­ade­r>lg
Open Lazygit
<Le­ade­r>gl
Lazygit logs
<le­ade­r>gbr
Pick and switch git branches

Snacks

File operations
<le­ade­r>rN
Fast rename current file
<le­ade­r>dB
Delete or close current buffer

Picker
<le­ade­r>pf
Find files
<le­ade­r>pc
Find config files
<le­ade­r>ps
Grep words
<le­ade­r>pws
Search visual selection or word
<le­ade­r>pk
Search keymaps

Other
<le­ade­r>th
Pick color scheme
<le­ade­r>vh
Help pages
QoL

Harpoon

<le­ade­r>a
Add to harpoon list
<C-­e>
Open harpoon list
<C-­p>
Harpoon previous
<C-­n>
Harpoon next

Auto Session

<le­ade­r>wr
Restore session
<le­ade­r>ws
Save session
Session manager.