Show Menu
Cheatography

nvim 2024 Cheat Sheet (DRAFT) by

Es warat wegen den ganzen neuen Plugins

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

Neotree

<LE­ADE­R>F
Neotree
/
Fuzzys­earch
C-t
Fuzzys­earch Hit - Open in tab
f
Find
S
Find Hits - Vertical Split
s
Find Hits - Horizonal Split
?
show Neotree help

Telescope

<LE­ADE­R>ff
Find
<LE­ADE­R>fg
Grep (Fuzzy)
C-t
Hit - Open in tab
C-v
Hit - Open in vertical split
C-x
Hit - Open in horizontal split

Movements

C-y
screen up one line
C-e
screen down one line
zz
center viewport to cursor
zt
current line to top of screen
zb
current line to bottom of screen
 

LSP

gd
goto definition (C-t to return)
K
inform­ation about symbol

Comment

[count]gcc (N)
toggle current line
gc (V)
toggle selection
gci[BL­OCKSEP]
toggle in block
gca[BL­OCKSEP]
toggle around block

Gitsigns

<LE­­AD­E­R­>hb
blame line
<LE­­AD­E­R­>hB
blame line (full)
<LE­­AD­E­R­>tb
blame
<LE­­AD­E­R­>hd
diff
<LE­­AD­E­R­>hD
diff (this ~)
<LE­ADE­R>td
toggle deleted
[c
previous hunk (change)
]c
next hunk (change)

precog­nition

<LE­ADE­R>p
toggle precog­nition