Neovim keymaps
<leader> is Space. <C-x> is Ctrl-x, <M-x> is Alt-x, <S-x> is Shift-x. Custom keymaps only.
Core
| Keys | Action | Notes |
|---|---|---|
| x | Deletes a character without copying it | |
| <leader>d | Deletes without copying | Normal and visual. The yank register stays untouched. |
| <leader>c | Changes without copying | Normal and visual. In LSP buffers, <leader>ca and <leader>cl take over "_ca{object} and "_cl. |
| <leader>p | Pastes the last yank | Normal and visual. Pastes from register 0, the last yank. |
| dw | Deletes the word backwards without copying | |
| + | Increments the number under the cursor | |
| - | Decrements the number under the cursor | |
| <C-a> | Selects the whole buffer | |
| te | Opens a new tab | |
| <Tab> | Goes to the next tab | |
| <S-Tab> | Goes to the previous tab | |
| ss | Splits the window below | Short, home-row window control. |
| sv | Splits the window to the right | |
| sh | Moves to the window on the left | Short, home-row window control. |
| sj | Moves to the window below | |
| sk | Moves to the window above | |
| sl | Moves to the window on the right | |
| <C-m> | Jumps forward in the jump list | <C-i> is the same key as Tab in the terminal, and Tab is taken by tab switching. |
| <CR> | Keeps Enter separate from <C-m> | Not in the spec. |
| <leader>o | Opens a line below without continuing a comment | Runs o<Esc>^Da. |
| <leader>O | Opens a line above without continuing a comment | Runs O<Esc>^Da. |
| <leader>bd | Closes every hidden buffer, except unsaved ones |
Words
| Keys | Action | Notes |
|---|---|---|
| ]] | Jumps to the next occurrence of the word under the cursor | Needs a language server. |
| [[ | Jumps to the previous occurrence of the word under the cursor | Needs a language server. |
Picker
| Keys | Action | Notes |
|---|---|---|
| ;f | Finds files, including hidden ones | Dotfiles like .github/ and .env.example are part of real projects. |
| ;r | Live-greps, including hidden files | |
| ;; | Reopens the last picker | |
| \\ | Lists open buffers | Jumps to a window that already shows the buffer. |
| ;e | Lists diagnostics | |
| ;n | Shows notification history | |
| ;h | Lists git hunks |
File explorer
| Keys | Action | Notes |
|---|---|---|
| sf | Opens oil as a centered float with a live preview | At most 200 columns wide, with rounded corners. |
| h | Goes to the parent directory | Oil buffers only. |
| q | Closes oil | Oil buffers only. |
LSP
| Keys | Action | Notes |
|---|---|---|
| gd | Goes to the definition | LSP buffers only. Through the picker, like gD, gy and gr. |
| gD | Goes to the declaration | LSP buffers only. |
| gy | Goes to the type definition | LSP buffers only. |
| gr | Lists references | LSP buffers only. Runs at once. Hides Neovim's built-in grr, grn, gra, gri, grt and grx. |
| gI | Goes to the source definition or implementation | LSP buffers only. In TypeScript it skips the .d.ts. Not tested against a real vtsls server. |
| ;c | Lists incoming calls | LSP buffers only. |
| K | Shows hover docs | LSP buffers only. |
| gK | Shows signature help | LSP buffers only. |
| <C-k> | Shows signature help | Insert mode, LSP buffers only. blink.cmp's own <C-k> is turned off so this one stays. |
| <C-j> | Jumps to the next diagnostic with a float | LSP buffers only. |
| <leader>ca | Shows code actions | LSP buffers only, normal mode. Takes over "_ca{object} from <leader>c. |
| <leader>cr | Renames the symbol | LSP buffers only. |
| <leader>cR | Renames the file with import updates | LSP buffers only. |
| <leader>cl | Shows LSP info | LSP buffers only. Takes over "_cl from <leader>c. |
| <leader>f | Formats the buffer now | Normal mode. Global, since conform formats Lua and shell files without a server. |
Completion
| Keys | Action | Notes |
|---|---|---|
| <CR> | Accepts the selected completion | blink.cmp's enter preset. The preset's other keys are blink defaults and are not listed here. |
| <C-k> | Turns off blink.cmp's <C-k> | Insert mode. Leaves <C-k> as signature help (see LSP). |
Git
| Keys | Action | Notes |
|---|---|---|
| <leader>gb | Blames the line | |
| <leader>gB | Blames the buffer | |
| <leader>go | Opens the file as of the commit that last touched the line, in a new tab | Shows the context of an old change without leaving the editor. |
| <leader>gs | Stages the buffer, or unstages it if nothing is left to stage | |
| <leader>gh | Stages or unstages the hunk | |
| <leader>gl | Copies the GitHub link from origin for the line or the selected range | Normal and visual. |
| <leader>gd | Toggles the diff overlay | |
| ]c | Jumps to the next hunk | In diff mode it keeps its built-in meaning. |
| [c | Jumps to the previous hunk | In diff mode it keeps its built-in meaning. |
| <leader>dv | Toggles the diff view | |
| <leader>dh | Shows the current file's history | Takes over "_dh from <leader>d in every buffer. |
| <leader>dH | Shows the repo history | Takes over "_dH from <leader>d in every buffer. |
| ;g | Opens lazygit in a float | Pressing e on a file in lazygit closes it and opens the file in the window you came from. |
AI
| Keys | Action | Notes |
|---|---|---|
| <C-l> | Accepts the Copilot suggestion | Insert mode. |
| <M-l> | Accepts a word of the suggestion | Insert mode. Alt-l. On macOS the terminal needs Option as Alt. |
| <M-L> | Accepts a line of the suggestion | Insert mode. Alt-Shift-l. |
| <M-]> | Shows the next suggestion | Insert mode. Alt-]. |
| <M-[> | Shows the previous suggestion | Insert mode. Alt-[. |
| <C-]> | Dismisses the suggestion | Insert mode. |
| <leader>ac | Toggles the Claude terminal | :ClaudeCode |
| <leader>af | Focuses the Claude terminal | :ClaudeCodeFocus |
| <leader>ar | Resumes a past session | :ClaudeCode --resume |
| <leader>aC | Continues the last session | :ClaudeCode --continue |
| <leader>am | Picks the model | :ClaudeCodeSelectModel |
| <leader>ab | Adds the current buffer to the context | :ClaudeCodeAdd % |
| <leader>as | Sends the selection to Claude | Visual mode. :ClaudeCodeSend. |
| <leader>aa | Accepts the diff | :ClaudeCodeDiffAccept, same as :w in the diff. |
| <leader>ad | Rejects the diff | :ClaudeCodeDiffDeny, same as :q in the diff. |
| <leader>as | Adds the file under the cursor to Claude | Oil buffers only. :ClaudeCodeTreeAdd. |
Agentic coding
| Keys | Action | Notes |
|---|---|---|
| <leader>yf | Copies the current file's path relative to cwd with #L<line> | e.g. lua/dehottdog/config/options.lua#L12. Outside cwd it falls back to the absolute path. |
| <leader>yp | Copies the absolute path with #L<line> | |
| <leader>cc | Copies the selection as a Markdown code block | Visual mode. Same format Inkdrop uses. Short language names (tsx, jsx, ts, js). Copies whole lines. |
| <leader>j | Opens the project's package.json in a centered 80% float | Warns when there is no package.json above the file. |
| q | Closes the package.json float | Only in the float. |
| <Esc> | Closes the package.json float | Only in the float. |