Keymap Reference
mapleader
is<Space>
.maplocalleader
is\
.- Mode notation:
n
(normal),i
(insert),v
(visual),x
(visual selection),o
(operator-pending),t
(terminal),c
(command). When multiple modes are listed, the mapping is active in each of them.
Navigation and Editing
n
<Esc>
- Clear the last search highlight via:nohlsearch
.i
jj
- Exit insert mode.
Window and Buffer Management
n
<Tab>
- Switch to the next buffer (:bnext
).n
<S-Tab>
- Switch to the previous buffer (:bprevious
).n,i,v,t,c
<C-h>
- Focus the split to the left.n,i,v,t,c
<C-j>
- Focus the split below.n,i,v,t,c
<C-k>
- Focus the split above.n,i,v,t,c
<C-l>
- Focus the split to the right.n
<leader>q
- Smart close the current view or delete the buffer (Mini Bufremove checks for unsaved changes).
Terminal
t
jj
- Leave terminal mode (<C-\><C-n>
); automatically disabled insideyazi
terminals.t
<Esc><Esc>
- Leave terminal mode (<C-\><C-n>
).
Formatting
n
<leader>f
- Format the current buffer asynchronously via Conform (falls back to LSP when needed).
LSP (buffer-local)
Mappings are attached to an LSP-enabled buffer when the server connects.
n
grn
- Rename the symbol under the cursor.n,x
gra
- Trigger code actions for the cursor or selection.n
grr
- List references with Telescope.n
gri
- List implementations with Telescope.n
grd
- Jump to definitions with Telescope.n
grD
- Jump to declarations.n
gO
- Open document symbols in Telescope.n
gW
- Open workspace symbols in Telescope.n
grt
- Show type definitions in Telescope.n
<leader>th
- Toggle inlay hints when the server supports them.
Git (gitsigns, buffer-local)
n
]c
- Jump to the next git hunk (respects diff mode).n
[c
- Jump to the previous git hunk.v
<leader>hs
- Stage the selected lines.v
<leader>hr
- Reset the selected lines.n
<leader>hs
- Stage the current hunk.n
<leader>hr
- Reset the current hunk.n
<leader>hS
- Stage the entire buffer.n
<leader>hu
- Undo the last stage action for the hunk.n
<leader>hR
- Reset the entire buffer.n
<leader>hp
- Preview the current hunk.n
<leader>hb
- Show blame information for the current line.n
<leader>hd
- Diff against the index.n
<leader>hD
- Diff againstHEAD
.n
<leader>tb
- Toggle inline blame.n
<leader>tD
- Toggle inline deleted line preview.
Snacks Pickers and Search
n
<leader><space>
- Smart picker for files and buffers.n
<leader>,
- Buffer picker.n
<leader>/
- Live grep across the project.n
<leader>:
- Command history picker.n
<leader>n
- Notification history.n
<leader>e
- Snacks file explorer.n
<leader>fc
- Find files under the Neovim config directory.n
<leader>fg
- Find git-tracked files.n
<leader>fp
- Project selector.n
<leader>fr
- Recently opened files.n
<leader>sb
- Search lines in the current buffer.n
<leader>sB
- Grep across open buffers.n,x
<leader>sw
- Grep the current word or selection.n
<leader>s"
- Inspect registers.n
<leader>s/
- Search history picker.n
<leader>sa
- Autocommands browser.n
<leader>sC
- Commands browser.n
<leader>sd
- Diagnostics across the project.n
<leader>sD
- Diagnostics for the current buffer.n
<leader>sh
- Help tags.n
<leader>sH
- Highlight groups.n
<leader>si
- Icon browser.n
<leader>sj
- Jump list.n
<leader>sk
- Keymaps browser.n
<leader>sl
- Location list items.n
<leader>sm
- Marks.n
<leader>sM
- Man pages.n
<leader>sp
- Lazy plugin specs.n
<leader>sq
- Quickfix list.n
<leader>sR
- Resume the last picker.n
<leader>su
- Undo history.n
<leader>ss
- LSP document symbols.n
<leader>sS
- LSP workspace symbols.n
<leader>uC
- Color scheme picker.
Snacks Utilities and Tools
n
gd
- Go to definition via Snacks picker.n
gD
- Go to declaration via Snacks picker.n
gr
- Go to references via Snacks picker.n
gI
- Go to implementations via Snacks picker.n
gy
- Go to type definitions via Snacks picker.n
<leader>z
- Toggle zen mode.n
<leader>Z
- Toggle zoomed-in view.n
<leader>.
- Toggle scratch buffer.n
<leader>S
- Select a scratch buffer.n
<leader>bd
- Delete the current buffer.n
<leader>cR
- Rename the current file.n,v
<leader>gB
- Open the current location in the browser.n
<leader>gg
- Launch Lazygit.n
<leader>un
- Dismiss all notifications.n
<C-/>
- Toggle the Snacks terminal.n
<C-_>
- Toggle the Snacks terminal (alias).n,t
]]
- Jump to the next reference highlight.n,t
[[
- Jump to the previous reference highlight.
Snacks Toggles
n
<leader>us
- Toggle spell checking.n
<leader>uw
- Togglewrap
.n
<leader>uL
- Toggle relative line numbers.n
<leader>ud
- Toggle diagnostics visibility.n
<leader>ul
- Toggle absolute line numbers.n
<leader>uc
- Toggleconceallevel
.n
<leader>uT
- Toggle Treesitter highlighting.n
<leader>ub
- Toggle between light and dark backgrounds.n
<leader>uh
- Toggle LSP inlay hints.n
<leader>ug
- Toggle indent guides.n
<leader>uD
- Toggle dimming overlay.
Aerial (outline)
n
<leader>o
- Toggle the Aerial outline window.n
{
- Jump to the previous symbol (buffer-local while Aerial is attached).n
}
- Jump to the next symbol (buffer-local while Aerial is attached).
Folding (nvim-ufo)
n
zR
- Open all folds.n
zM
- Close all folds.n
K
- Peek folded lines; falls back tovim.lsp.buf.hover()
when no fold is under the cursor.
File Manager (yazi.nvim)
n,v
<leader>-
- Launch Yazi at the current file.n
<leader>cw
- Launch Yazi in the current working directory.n
<C-Up>
- Toggle or resume the last Yazi session.
Claude Code
(Group)
<leader>a
- Which-key anchor for AI and Claude commands.n
<leader>ac
- Toggle the Claude panel.n
<leader>af
- Focus the Claude panel window.n
<leader>ar
- Resume the last Claude session.n
<leader>aC
- Continue the current Claude conversation.n
<leader>am
- Choose the Claude model.n
<leader>ab
- Add the current buffer to Claude context.v
<leader>as
- Send the visual selection to Claude.n
<leader>as
- Add the highlighted item to Claude from file or tree buffers.n
<leader>aa
- Accept Claude diff changes.n
<leader>ad
- Reject Claude diff changes.
Avante
General command mappings (active when Avante is loaded):
n
<leader>ca
- Submit a prompt to Avante.n
<leader>cn
- Start a new request.n
<leader>cz
- Toggle Avante zen mode.n
<leader>ce
- Edit the active request.n
<leader>cr
- Refresh the response.n
<leader>cf
- Focus the Avante window.n
<leader>cS
- Stop the current generation.n
<leader>ct
- Toggle the default Avante UI.n
<leader>cd
- Toggle debug view.n
<leader>cC
- Toggle the selection panel.n
<leader>cs
- Toggle the suggestions view.n
<leader>cR
- Toggle the keymap overlay.n
<leader>cc
- Add the current file to the request context.n
<leader>cB
- Add all open buffers to the request context.n
<leader>c?
- Select a model.n
<leader>ch
- Browse conversation history.
Suggestion handling (inside Avante suggestion panes):
i
<M-l>
- Accept the current suggestion.i
<M-]>
- Move to the next suggestion.i
<M-[>
- Move to the previous suggestion.i
<C-]>
- Dismiss suggestions.
Navigation helpers (within Avante buffers):
n
[[
- Jump to the previous item.n
]]
- Jump to the next item.
Diff controls (within Avante diff views):
n
co
- Accept our changes.n
ct
- Accept incoming changes.n
ca
- Accept all incoming changes.n
cb
- Accept both sides.n
cc
- Accept at the cursor.n
]x
- Jump to the next diff hunk.n
[x
- Jump to the previous diff hunk.
Submission and cancellation:
n
<CR>
- Submit from normal mode.i
<C-s>
- Submit from insert mode.n
<C-c>
,<Esc>
, orq
- Cancel the current operation.i
<C-c>
- Cancel the current operation while in insert mode.
Sidebar controls (inside the Avante sidebar):
n
<Tab>
- Switch between sidebar sections.n
<S-Tab>
- Reverse switch between sections or expand tool output (context sensitive).n
]p
- Move to the next prompt.n
[p
- Move to the previous prompt.n
A
- Apply all diff results shown in the sidebar.n
a
- Apply diff results at the cursor.n
r
- Retry the last user request.n
e
- Edit the last user request.n
x
- Toggle the code window.n
d
- Remove the current file.n
@
- Add a file.n
q
- Close the sidebar.
Confirmation controls:
n
<C-w>f
- Focus the confirmation window.n
c
- Confirm code changes.n
r
- Confirm the response.n
i
- Confirm the input.
Avante remaps
[[
and]]
inside its buffers; the Snacks bindings continue to work elsewhere.
GitHub Copilot
i
<Tab>
- Accept the current suggestion (inserts a newline).i
<C-l>
- Accept the next word from Copilot.i
<C-H>
- Dismiss the suggestion.i
<C-N>
- Cycle to the next suggestion.i
<C-P>
- Cycle to the previous suggestion.
Molten (notebook runner)
Global:
n
<localleader>mi
- Initialize Molten in the current buffer.
Buffer-local (after :MoltenInit
):
n
<localleader>mi
- Re-runMoltenInit
.n
<localleader>md
- Deinitialize Molten.n
<localleader>me
- Evaluate the current line.v
<localleader>me
- Evaluate the visual selection.n
<localleader>mr
- Reevaluate the active cell.n
<localleader>mx
- Delete the active cell.n
<localleader>mo
- Enter the output window without triggering autocommands.n
<localleader>mh
- Hide the output window.
Grug-Far
n,v
<localleader>sw
- Open Grug-Far scoped to the workspace (current working directory).n,v
<localleader>sb
- Open Grug-Far across all listed buffers.n,v
<localleader>sf
- Open Grug-Far scoped to the current file.
CSV View
o,x
if
- Select the inner CSV field text object.o,x
af
- Select the outer CSV field text object.
Leap Motions
n,x,o
s
- Leap forward to a target.n,x,o
S
- Leap backward to a target.n,x,o
gs
- Leap from another window.
Noice
n
<C-n>
- Scroll forward inside Noice LSP documentation (falls back to<C-f>
when unavailable).n
<C-p>
- Scroll backward inside Noice LSP documentation (falls back to<C-b>
when unavailable).n
<leader>K
- Open LSP hover text in a vertical split.n
q
- Close the custom hover buffer (buffer-local to the hover split created by<leader>K
).
Additional Notes
- The terminal mapping
jj
is automatically disabled insideyazi
terminal buffers so the file manager keeps its native navigation. - Many plugin mappings (for example gitsigns, LSP, Aerial, Molten, Noice hover, Avante, CSV View) are buffer-local and only active while the corresponding plugin attaches.