Show Menu
Cheatography

Neovim Keyboard Shortcuts (DRAFT) by

Personal neovim keyboard lookup

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

Window [N]

Ctrl+w ⇒ [motion ⇒] (hjkl)
Move cursor to window in [motion] direction
Ctrl+w ⇒ (HJKL)
Move window to the very edge of the direction
Ctrl+w ⇒ T
Move window to new tab
Ctrl+w ⇒ c
Close current window

Telescope [N]

<le­ade­r><­lea­der>
Seach open buffers
<le­ade­r>sf
[s]earch [f]iles
<le­ade­r>sg
[s]earch [g]rep
<le­ade­r>ss
[s]earch telescope searchers

Tree

f
Filter
I
Show git ignored files
r
Rename file
a
Create new file

Basics [N]

r
Replace char under cursor
cw
Remove word and enter insert mode

Aliases

<le­ade­r>
<sp­ace>
 

GOTO [N]

Ctrl+O
Go back after goto
[number]G
Go to line [number]
g[number] (hjkl)
Go relative [number] in direction
gg
Go to start of document
G
Go to end of document
[number]w
Jump [number of] word(s)
[number]W
Jump [number of] word(s) backwards

LSP [N]

gi
Goto implem­ent­ation
gd
Goto definition
gD
Goto declar­ation
K
View inform­ation of item under cursor
Ctrl+k
View signature
<sp­ace­>ca
Show code actions
<sp­ace­>rn
Intera­ctive rename
<sp­ace­>D
Show type definition
<sp­ace­>f
Format
gr
Show references
<sp­ace­>e
Open diagno­stice float
([])d
Goto prev/next diagno­stics
<sp­ace­>q
Show list of diagno­tstics in file