Neovim Shortcuts
Neovim 0.11.6
LazyVim v8
Snacks Picker
leader = Space
LSP - Go to Definition / References
| Shortcut | Action | Source | Mode |
| gd | Go to definition | builtin | n |
| gD | Go to declaration | builtin | n |
| gr | Find all references / usages | builtin | n |
| gI | Go to implementation | builtin | n |
| gy | Go to type definition | lazyvim | n |
| K | Hover documentation | builtin | n |
| gK | Signature help | lazyvim | n |
| Ctrlk | Signature help (insert mode) | builtin | i |
| Spaceca | Code action | lazyvim | n, v |
| Spacecr | Rename symbol | lazyvim | n |
| SpacecA | Source action | lazyvim | n |
| Spacecl | LSP info | lazyvim | n |
| Spacecf | Format document / selection | lazyvim | n, v |
Diagnostics
| Shortcut | Action | Source | Mode |
| ]d | Next diagnostic | lazyvim | n |
| [d | Previous diagnostic | lazyvim | n |
| ]e | Next error | lazyvim | n |
| [e | Previous error | lazyvim | n |
| ]w | Next warning | lazyvim | n |
| [w | Previous warning | lazyvim | n |
| Spacexx | Diagnostics (Trouble) | lazyvim | n |
| SpacexX | Buffer diagnostics (Trouble) | lazyvim | n |
Search / Snacks Picker
| Shortcut | Action | Source | Mode |
| SpaceSpace | Find files (root dir) | lazyvim | n |
| Spaceff | Find files (root dir) | lazyvim | n |
| SpacefF | Find files (cwd) | lazyvim | n |
| Spacefg | Find files (git) | lazyvim | n |
| Spacefr | Recent files | lazyvim | n |
| Spacefn | New file | lazyvim | n |
| Space/ | Grep (root dir) | lazyvim | n |
| Spacesg | Grep (root dir) | lazyvim | n |
| SpacesG | Grep (cwd) | lazyvim | n |
| Spacesw | Grep word under cursor (root dir) | lazyvim | n |
| SpacesW | Grep word under cursor (cwd) | lazyvim | n |
| Spacess | LSP document symbols | lazyvim | n |
| SpacesS | LSP workspace symbols | lazyvim | n |
| Spacesb | Buffer lines | lazyvim | n |
| Spacesd | Diagnostics (buffer) | lazyvim | n |
| SpacesD | Diagnostics (all buffers) | lazyvim | n |
| Spacesh | Help tags | lazyvim | n |
| Spacesk | Keymaps | lazyvim | n |
| Spacesm | Marks | lazyvim | n |
| Spacesr | Resume last picker | lazyvim | n |
| Spaces" | Registers | lazyvim | n |
| Spacesc | Command history | lazyvim | n |
| SpacesC | Commands | lazyvim | n |
| visual / | Search visual selection in buffer | custom | v |
| visual Space/ | Grep visual selection (project-wide) | custom | v |
Navigation
| Shortcut | Action | Source | Mode |
| Ctrlo | Jump back (jump list) | builtin | n |
| Ctrli | Jump forward (jump list) | builtin | n |
| ]q | Next quickfix item | lazyvim | n |
| [q | Previous quickfix item | lazyvim | n |
| % | Jump to matching bracket | builtin | n |
| gg | Go to first line | builtin | n |
| G | Go to last line | builtin | n |
| { / } | Previous / next paragraph | builtin | n |
| Ctrld | Scroll down half page | builtin | n |
| Ctrlu | Scroll up half page | builtin | n |
Buffers
| Shortcut | Action | Source | Mode |
| Shifth | Previous buffer | lazyvim | n |
| Shiftl | Next buffer | lazyvim | n |
| Spacebb | Switch to other buffer | lazyvim | n |
| Spacebd | Delete buffer | lazyvim | n |
| SpacebD | Delete buffer + window | lazyvim | n |
| Spacebo | Delete other buffers | lazyvim | n |
| Space, | Switch buffer (picker) | lazyvim | n |
Windows
| Shortcut | Action | Source | Mode |
| Ctrlh | Go to left window | lazyvim | n |
| Ctrlj | Go to lower window | lazyvim | n |
| Ctrlk | Go to upper window | lazyvim | n |
| Ctrll | Go to right window | lazyvim | n |
| Space- | Split below | lazyvim | n |
| Space| | Split right | lazyvim | n |
| Spacewd | Delete window | lazyvim | n |
| Spacewm | Maximize / restore window | lazyvim | n |
Tabs
| Shortcut | Action | Source | Mode |
| SpaceTabTab | New tab | lazyvim | n |
| SpaceTabd | Close tab | lazyvim | n |
| SpaceTabo | Close other tabs | lazyvim | n |
| SpaceTab] | Next tab | lazyvim | n |
| SpaceTab[ | Previous tab | lazyvim | n |
| SpaceTabl | Last tab | lazyvim | n |
| SpaceTabf | First tab | lazyvim | n |
Editing
| Shortcut | Action | Source | Mode |
| Altj | Move line down | lazyvim | n, v |
| Altk | Move line up | lazyvim | n, v |
| < | Indent left (stays in visual) | lazyvim | v |
| > | Indent right (stays in visual) | lazyvim | v |
| J | Join lines (cursor stays put) | builtin | n |
| u | Undo | builtin | n |
| Ctrlr | Redo | builtin | n |
| . | Repeat last change | builtin | n |
| Spacexx | Autoformat JSON (jq) | custom | n |
Git
| Shortcut | Action | Source | Mode |
| Spacegg | Lazygit (root dir) | lazyvim | n |
| SpacegG | Lazygit (cwd) | lazyvim | n |
| Spacegf | Lazygit current file history | lazyvim | n |
| Spacegl | Lazygit log (root dir) | lazyvim | n |
| Spacegb | Git blame line | lazyvim | n |
| SpacegB | Git browse (open in browser) | lazyvim | n |
| ]h | Next git hunk | lazyvim | n |
| [h | Previous git hunk | lazyvim | n |
| Spaceghp | Preview hunk inline | lazyvim | n |
| Spaceghs | Stage hunk | lazyvim | n, v |
| Spaceghr | Reset hunk | lazyvim | n, v |
| SpaceghS | Stage buffer | lazyvim | n |
| SpaceghR | Reset buffer | lazyvim | n |
| Spaceghd | Diff this | lazyvim | n |
File Explorer (Snacks)
| Shortcut | Action | Source | Mode |
| Spacee | Toggle file explorer | lazyvim | n |
| SpaceE | Toggle file explorer (cwd) | lazyvim | n |
| yr | Copy relative path | custom | n (explorer) |
| ya | Copy absolute path | custom | n (explorer) |
| yf | Copy filename | custom | n (explorer) |
| yd | Copy directory path | custom | n (explorer) |
| yy | Copy full path (default) | custom | n (explorer) |
UI Toggles
| Shortcut | Action | Source | Mode |
| Spaceuf | Toggle auto format (global) | lazyvim | n |
| SpaceuF | Toggle auto format (buffer) | lazyvim | n |
| Spaceus | Toggle spelling | lazyvim | n |
| Spaceuw | Toggle word wrap | lazyvim | n |
| SpaceuL | Toggle relative line numbers | lazyvim | n |
| Spaceud | Toggle diagnostics | lazyvim | n |
| Spaceuc | Toggle conceal | lazyvim | n |
| Spaceub | Toggle dark/light background | lazyvim | n |
| SpaceuC | Colorscheme picker | lazyvim | n |
| Spaceun | Dismiss all notifications | lazyvim | n |
Misc
| Shortcut | Action | Source | Mode |
| Spacel | Lazy (plugin manager) | lazyvim | n |
| Spaceqq | Quit all | lazyvim | n |
| Esc | Clear search highlight | lazyvim | n |
| Cmdv | Paste from clipboard (Neovide) | custom | i, c |