Show Menu
Cheatography

My Neovim Config Keyboard Shortcuts (DRAFT) by

My Neovim config with my own shortcuts.

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

File Search - Fuzzy find

<le­ade­r>ff
Project Find
(Fuzzy) Find Files
<le­ade­r>fg
Find Git
(Fuzzy) Find Files in Git
<le­ade­r>fs
Project Search
grep
search all files
<le­ade­r>fb
Find buffers
Find all open buffers in current Tab
<le­ade­r>fB
Find BUFFERS
Find all open buffers in all Tabs

Neotree (Filetree)

<C-­b>
 
Toggle Neotree
<le­ade­r>nc
neotree current
Open Neotree in current pane
<le­ade­r>no
neotree open
Open and jump to Neotree

Telescope

<C-­x>
Open File in split
<C-­v>
Open File in vertical split
<C-­t>
Open File in new tab

Usefull commands

:NoiceAll
Show all Messages in full

Harpoon

<le­ade­r>ho
harpoon open
toogle harpoon quickmenu
Quickmenu
<C-­v>
vertical
Open file in vertical split
Quickmenu
<C-­x>
 
Open file in horizontal split
Quickmenu
<C-­t>
tab
Open file in new Tab.
Quickmenu
dd
delete
Delete the entry (like you would any line)
<le­ade­r>ha
harpoon add
Add file to list.

Git

<le­ade­r>gd
Git Diff
Open the git diff window in a new tab

Messages

<le­ade­r>mo
Messages Open
Toggle Messages window (
:NoiceAll
)
<le­ade­r>md
Messages Dismiss
Immedi­ately dismiss all Noice messages.
 

Window Management

<le­ade­r>w­{ijkl}
window select
Move focus to window in direction
<le­ade­r>wg
window goto
Display window names and goto selected
<le­ade­r>wm
window move
Enable
winmove
move
mode
Move-Mode
{ijkl}
 
Move window in direction
Move-Mode
{IJKL}
 
Move window to far direction
Move-Mode
s{ijkl}
split
Split window in direction
<le­ade­r>ws
window swap
Enable
winmove
swap
mode
Swap-Mode
{ijkl}
 
Swap in direction
<le­ade­r>wr
window resize
Enable
winmove
resize
mode
Resize­-Mode
{ijkl}
 
Resize in direction
Resize­-Mode
{IJKL}
 
Resize large amount in direction
Resize­-Mode
<c-­{ij­kl}>
 
Resize in direction with bottom­-right anchor
Resize­-Mode
<c-­s-{­ijk­l}>
 
Resize large amount in direction with bottom­-right anchor.
Any Window Mode
q
quit
Quit the Mode
 

Diagno­stics (Trouble)

<le­ade­r>do
diagnostics open
Open diagno­stics menu
<le­ade­r>dO
diagnostics open
Open diagno­stics menu for current buffer
<le­ade­r>dl
diagnostics location list
Open Location list
<le­ade­r>dq
diagnostics qick fixes
Open quick fixes

Symbol (Trouble)

<le­ade­r>so
symbols open
Toggle Symbol bar
<le­ade­r>sl
symbols lsp
Toogle LSP Symbol bar

Code Folding

za
Toggle Folding
zo
Open current fold
zR
Unfold All
zM
Fold All
<le­ade­r>zl
Fold level (dialogue to set number)

Tab navigation

gt
Next Tab
gT
Previous Tab
{NUMBER}gt
Go to Tab with number
<le­ade­r>tn
Tab New
<le­ade­r>tr
Tab Rename
<le­ade­r>tm
Tab Move
<le­ade­r>tc
Tab Close
<le­ade­r>tg
Tab Goto

Pretty Format

<le­ade­r>pf
Pretty Format
Format entire file or selection using lsp.
<le­ade­r>pc
Pretty Conform
Format using the
conform
plugin
<le­ade­r>pi
Pretty Info
Show
conform
plugin formatter info.
<le­ade­r>pw
Pretty Whitespace
Remove trailing whitespace of entire file or selection.
<le­ade­r>pl
Pretty Line
Switch between single and multiple scoped line