This is a draft cheat sheet. It is a work in progress and is not finished yet.
Basics
<leader>pv |
Opens netwr |
(Visual Mode) <S-J> |
Move line one row down |
(Visual Mode) <S-K> |
Move line one row up |
<leader>x |
Make current file executable |
LSP
<C-Space> |
Complete LSP suggestion |
<C-y> |
Confirm LSP suggestion |
<C-p> |
Go to prev item in LSP suggestion |
<C-n> |
Go to next item in LSP suggestion |
Trouble
<leader>tt |
Open buffer with problems in buffer files |
<leader>tn |
Move to next problem |
<leader>tp |
Move to previous problem |
<leader>xq |
Open Trouble quickfix |
|
|
Fugitive / Git Blame
<leader>gs |
Git Status |
<leader>p |
Git Push (inside buffer) |
<leader>P |
Git pull —rebase (inside buffer) |
<leader>t |
Git push -u origin (inside buffer |
<leader>gb |
Git blame |
Telescope
<leader>pf |
Find file |
<C-p> |
Find files staged in git repo |
<leader>pws |
Grep using word under cursor |
<leader>pWs |
Grep using word (until end of line) |
<leader>ps |
Grep |
<leader>vh |
Find man for vim functions |
|
|
Harpoon
<leader>a |
Add file to harpoon |
<C-e> |
Open menu with files in harpoon |
<C-j> |
Go to first file in harpoon list |
<C-k> |
Go to second file in harpoon list |
<C-l> |
Go to third file in harpoon list |
<C-;> |
Go to fourth file in harpoon list |
Undotree
<leader>u |
Toggle Undo Tree |
Others
viw |
Visual selection of the word under cursor |
(visual mode) -> g -> <C-a> |
Increment (smart) by line |
|