Neovim Keybinds & Commands Cheatsheet
LSP (built-in, Neovim 0.11+)
| Key |
Action |
grn |
Rename symbol |
grr |
Go to references |
gra |
Code action |
gri |
Go to implementation |
gO |
Document symbols |
gd |
Go to definition |
gD |
Go to declaration |
K |
Hover documentation |
<C-s> (insert) |
Signature help |
Diagnostics (built-in)
| Key / Command |
Action |
[d |
Previous diagnostic |
]d |
Next diagnostic |
<C-w>d |
Open diagnostic float |
:lua vim.diagnostic.setqflist() |
All diagnostics to quickfix |
:lua vim.diagnostic.setloclist() |
Buffer diagnostics to loclist |
Autocompletion (blink.cmp)
| Key |
Action |
<C-space> |
Trigger completion menu |
<C-n> |
Next item |
<C-p> |
Previous item |
<CR> |
Confirm selection |
<C-e> |
Dismiss menu |
<C-b> |
Scroll docs up |
<C-f> |
Scroll docs down |
Sources: LSP, buffer words, file paths.
Buffer Navigation
| Key |
Action |
<Tab> |
Next buffer |
<Shift-Tab> |
Previous buffer |
<leader>x |
Close current buffer |
Each split window shows its own filename bar (winbar) at the top.
File Explorer (oil.nvim)
| Key / Command |
Action |
<leader>e |
Toggle file tree (left sidebar) |
- or <BS> |
Go up one directory (in file tree) |
<CR> |
Open file in last used code window (auto-focuses there) |
g. |
Toggle hidden files |
<C-p> |
Preview file |
<C-c> |
Close oil |
:w (in oil buffer) |
Save filesystem changes (renames, deletes, etc.) |
Edit filenames directly in the buffer, then :w to apply.
Task Runner (overseer.nvim)
| Command |
Action |
:OverseerRun |
Pick and run a task |
:OverseerToggle |
Toggle task list panel |
:OverseerInfo |
Show overseer status/info |
:OverseerBuild |
Build a task from scratch |
:OverseerQuickAction |
Run quick action on recent task |
:OverseerTaskAction |
Pick a task, then an action |
:OverseerClearCache |
Clear cached tasks |
Tasks integrate with quickfix: errors from tasks populate the quickfix list.
Mason (LSP server management)
| Command |
Action |
:Mason |
Open Mason UI |
:MasonInstall <server> |
Install a server |
:MasonUninstall <server> |
Remove a server |
:MasonUpdate |
Update all servers |
:MasonLog |
View install logs |
Auto-installed servers: gopls, bashls, ansiblels, yamlls.
Treesitter
| Command |
Action |
:TSInstall <lang> |
Install a parser |
:TSUpdate |
Update all parsers |
:TSInstall go bash yaml lua |
Install all configured parsers |
Syntax highlighting is automatic once a parser is installed.
Quickfix List (built-in)
| Key / Command |
Action |
:copen |
Open quickfix window |
:cclose |
Close quickfix window |
:cnext / ]q |
Next quickfix item |
:cprev / [q |
Previous quickfix item |
:cfirst |
First item |
:clast |
Last item |
Window Resizing (built-in)
| Key |
Action |
<C-w>> |
Wider (right) |
<C-w>< |
Narrower (left) |
<C-w>+ |
Taller |
<C-w>- |
Shorter |
<C-w>= |
Equal size all |
10<C-w>> |
Wider by 10 columns |
General (built-in)
| Key |
Action |
<C-w>s |
Split horizontal |
<C-w>v |
Split vertical |
<C-t> |
Toggle floating popup terminal |
<Alt-h/j/k/l> |
Move between panes (also works from terminal) |
<C-w>h/j/k/l |
Move between panes (default) |
:e <path> |
Open file |
u |
Undo |
<C-r> |
Redo |
. |
Repeat last change |
* |
Search word under cursor |
:noh |
Clear search highlight |
Sessions / Layout
| Key |
Action |
<leader>ss |
Save current layout/session |
<leader>sl |
Load saved layout/session |
Saves window positions, sizes, buffers, and current directory.
Statusline
Shows: filename [modified] [readonly] on the left, git-branch | line:col percent on the right.