Show Menu
Cheatography

My Vim Keymaps Cheat Sheet (DRAFT) by

My personal Vim Keymaps

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Basics

<le­ade­r>pv
Opens netwr
(Visual Mode) <S-­J>
Move line one row down
(Visual Mode) <S-­K>
Move line one row up
<le­ade­r>x
Make current file executable

LSP

<C-­Spa­ce>
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

<le­ade­r>tt
Open buffer with problems in buffer files
<le­ade­r>tn
Move to next problem
<le­ade­r>tp
Move to previous problem
<le­ade­r>xq
Open Trouble quickfix
 

Fugitive / Git Blame

<le­ade­r>gs
Git Status
<le­ade­r>p
Git Push (inside buffer)
<le­ade­r>P
Git pull —rebase (inside buffer)
<le­ade­r>t
Git push -u origin (inside buffer
<le­ade­r>gb
Git blame

Telescope

<le­ade­r>pf
Find file
<C-­p>
Find files staged in git repo
<le­ade­r>pws
Grep using word under cursor
<le­ade­r>pWs
Grep using word (until end of line)
<le­ade­r>ps
Grep
<le­ade­r>vh
Find man for vim functions
 

Harpoon

<le­ade­r>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

Toggle Term

<C-­\>
Toggle Terminal

Undotree

<le­ade­r>u
Toggle Undo Tree

Others

viw
Visual selection of the word under cursor
(visual mode) -> g -> <C-­a>
Increment (smart) by line