Neovim keymaps

<leader> is Space. <C-x> is Ctrl-x, <M-x> is Alt-x, <S-x> is Shift-x. Custom keymaps only.

Core

KeysActionNotes
xDeletes a character without copying it
<leader>dDeletes without copyingNormal and visual. The yank register stays untouched.
<leader>cChanges without copyingNormal and visual. In LSP buffers, <leader>ca and <leader>cl take over "_ca{object} and "_cl.
<leader>pPastes the last yankNormal and visual. Pastes from register 0, the last yank.
dwDeletes the word backwards without copying
+Increments the number under the cursor
-Decrements the number under the cursor
<C-a>Selects the whole buffer
teOpens a new tab
<Tab>Goes to the next tab
<S-Tab>Goes to the previous tab
ssSplits the window belowShort, home-row window control.
svSplits the window to the right
shMoves to the window on the leftShort, home-row window control.
sjMoves to the window below
skMoves to the window above
slMoves 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>oOpens a line below without continuing a commentRuns o<Esc>^Da.
<leader>OOpens a line above without continuing a commentRuns O<Esc>^Da.
<leader>bdCloses every hidden buffer, except unsaved ones

Words

KeysActionNotes
]]Jumps to the next occurrence of the word under the cursorNeeds a language server.
[[Jumps to the previous occurrence of the word under the cursorNeeds a language server.

Picker

KeysActionNotes
;fFinds files, including hidden onesDotfiles like .github/ and .env.example are part of real projects.
;rLive-greps, including hidden files
;;Reopens the last picker
\\Lists open buffersJumps to a window that already shows the buffer.
;eLists diagnostics
;nShows notification history
;hLists git hunks

File explorer

KeysActionNotes
sfOpens oil as a centered float with a live previewAt most 200 columns wide, with rounded corners.
hGoes to the parent directoryOil buffers only.
qCloses oilOil buffers only.

LSP

KeysActionNotes
gdGoes to the definitionLSP buffers only. Through the picker, like gD, gy and gr.
gDGoes to the declarationLSP buffers only.
gyGoes to the type definitionLSP buffers only.
grLists referencesLSP buffers only. Runs at once. Hides Neovim's built-in grr, grn, gra, gri, grt and grx.
gIGoes to the source definition or implementationLSP buffers only. In TypeScript it skips the .d.ts. Not tested against a real vtsls server.
;cLists incoming callsLSP buffers only.
KShows hover docsLSP buffers only.
gKShows signature helpLSP buffers only.
<C-k>Shows signature helpInsert 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 floatLSP buffers only.
<leader>caShows code actionsLSP buffers only, normal mode. Takes over "_ca{object} from <leader>c.
<leader>crRenames the symbolLSP buffers only.
<leader>cRRenames the file with import updatesLSP buffers only.
<leader>clShows LSP infoLSP buffers only. Takes over "_cl from <leader>c.
<leader>fFormats the buffer nowNormal mode. Global, since conform formats Lua and shell files without a server.

Completion

KeysActionNotes
<CR>Accepts the selected completionblink.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

KeysActionNotes
<leader>gbBlames the line
<leader>gBBlames the buffer
<leader>goOpens the file as of the commit that last touched the line, in a new tabShows the context of an old change without leaving the editor.
<leader>gsStages the buffer, or unstages it if nothing is left to stage
<leader>ghStages or unstages the hunk
<leader>glCopies the GitHub link from origin for the line or the selected rangeNormal and visual.
<leader>gdToggles the diff overlay
]cJumps to the next hunkIn diff mode it keeps its built-in meaning.
[cJumps to the previous hunkIn diff mode it keeps its built-in meaning.
<leader>dvToggles the diff view
<leader>dhShows the current file's historyTakes over "_dh from <leader>d in every buffer.
<leader>dHShows the repo historyTakes over "_dH from <leader>d in every buffer.
;gOpens lazygit in a floatPressing e on a file in lazygit closes it and opens the file in the window you came from.

AI

KeysActionNotes
<C-l>Accepts the Copilot suggestionInsert mode.
<M-l>Accepts a word of the suggestionInsert mode. Alt-l. On macOS the terminal needs Option as Alt.
<M-L>Accepts a line of the suggestionInsert mode. Alt-Shift-l.
<M-]>Shows the next suggestionInsert mode. Alt-].
<M-[>Shows the previous suggestionInsert mode. Alt-[.
<C-]>Dismisses the suggestionInsert mode.
<leader>acToggles the Claude terminal:ClaudeCode
<leader>afFocuses the Claude terminal:ClaudeCodeFocus
<leader>arResumes a past session:ClaudeCode --resume
<leader>aCContinues the last session:ClaudeCode --continue
<leader>amPicks the model:ClaudeCodeSelectModel
<leader>abAdds the current buffer to the context:ClaudeCodeAdd %
<leader>asSends the selection to ClaudeVisual mode. :ClaudeCodeSend.
<leader>aaAccepts the diff:ClaudeCodeDiffAccept, same as :w in the diff.
<leader>adRejects the diff:ClaudeCodeDiffDeny, same as :q in the diff.
<leader>asAdds the file under the cursor to ClaudeOil buffers only. :ClaudeCodeTreeAdd.

Agentic coding

KeysActionNotes
<leader>yfCopies 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>ypCopies the absolute path with #L<line>
<leader>ccCopies the selection as a Markdown code blockVisual mode. Same format Inkdrop uses. Short language names (tsx, jsx, ts, js). Copies whole lines.
<leader>jOpens the project's package.json in a centered 80% floatWarns when there is no package.json above the file.
qCloses the package.json floatOnly in the float.
<Esc>Closes the package.json floatOnly in the float.