⌨️ Keymaps
LazyVim uses which-key.nvim to help you remember your
keymaps. Just press any key like <space>
and you'll see a popup with all
possible keymaps starting with <space>
.
- default
<leader>
is <space>
- default
<localleader>
is \
General
Key | Description | Mode |
---|
j | Down | n, x |
<Down> | Down | n, x |
k | Up | n, x |
<Up> | Up | n, x |
<C-h> | Go to Left Window | n |
<C-j> | Go to Lower Window | n |
<C-k> | Go to Upper Window | n |
<C-l> | Go to Right Window | n |
<C-Up> | Increase Window Height | n |
<C-Down> | Decrease Window Height | n |
<C-Left> | Decrease Window Width | n |
<C-Right> | Increase Window Width | n |
<A-j> | Move Down | n, i, v |
<A-k> | Move Up | n, i, v |
<S-h> | Prev Buffer | n |
<S-l> | Next Buffer | n |
[b | Prev Buffer | n |
]b | Next Buffer | n |
<leader>bb | Switch to Other Buffer | n |
<leader>` | Switch to Other Buffer | n |
<leader>bd | Delete Buffer | n |
<leader>bo | Delete Other Buffers | n |
<leader>bD | Delete Buffer and Window | n |
<esc> | Escape and Clear hlsearch | i, n |
<leader>ur | Redraw / Clear hlsearch / Diff Update | n |
n | Next Search Result | n, x, o |
N | Prev Search Result | n, x, o |
<C-s> | Save File | i, x, n, s |
<leader>K | Keywordprg | n |
gco | Add Comment Below | n |
gcO | Add Comment Above | n |
<leader>l | Lazy | n |
<leader>fn | New File | n |
<leader>xl | Location List | n |
<leader>xq | Quickfix List | n |
[q | Previous Quickfix | n |
]q | Next Quickfix | n |
<leader>cf | Format | n, v |
<leader>cd | Line Diagnostics | n |
]d | Next Diagnostic | n |
[d | Prev Diagnostic | n |
]e | Next Error | n |
[e | Prev Error | n |
]w | Next Warning | n |
[w | Prev Warning | n |
<leader>uf | Toggle Auto Format (Global) | n |
<leader>uF | Toggle Auto Format (Buffer) | n |
<leader>us | Toggle Spelling | n |
<leader>uw | Toggle Wrap | n |
<leader>uL | Toggle Relative Number | n |
<leader>ud | Toggle Diagnostics | n |
<leader>ul | Toggle Line Numbers | n |
<leader>uc | Toggle conceallevel | n |
<leader>uT | Toggle Treesitter Highlight | n |
<leader>ub | Toggle Dark Background | n |
<leader>uh | Toggle Inlay Hints | n |
<leader>qq | Quit All | n |
<leader>ui | Inspect Pos | n |
<leader>uI | Inspect Tree | n |
<leader>L | LazyVim Changelog | n |
<leader>fT | Terminal (cwd) | n |
<leader>ft | Terminal (Root Dir) | n |
<c-/> | Terminal (Root Dir) | n |
<c-_> | which_key_ignore | n, t |
<C-/> | Hide Terminal | t |
<leader>w | Windows | n |
<leader>- | Split Window Below | n |
<leader>| | Split Window Right | n |
<leader>wd | Delete Window | n |
<leader>wm | Toggle Maximize | n |
<leader><tab>l | Last Tab | n |
<leader><tab>o | Close Other Tabs | n |
<leader><tab>f | First Tab | n |
<leader><tab><tab> | New Tab | n |
<leader><tab>] | Next Tab | n |
<leader><tab>d | Close Tab | n |
<leader><tab>[ | Previous Tab | n |
LSP
Key | Description | Mode |
---|
<leader>cl | Lsp Info | n |
gd | Goto Definition | n |
gr | References | n |
gI | Goto Implementation | n |
gy | Goto T[y]pe Definition | n |
gD | Goto Declaration | n |
K | Hover | n |
gK | Signature Help | n |
<c-k> | Signature Help | i |
<leader>ca | Code Action | n, v |
<leader>cc | Run Codelens | n, v |
<leader>cC | Refresh & Display Codelens | n |
<leader>cR | Rename File | n |
<leader>cr | Rename | n |
<leader>cA | Source Action | n |
]] | Next Reference | n |
[[ | Prev Reference | n |
<a-n> | Next Reference | n |
<a-p> | Prev Reference | n |
Key | Description | Mode |
---|
<leader>bl | Delete Buffers to the Left | n |
<leader>bp | Toggle Pin | n |
<leader>bP | Delete Non-Pinned Buffers | n |
<leader>br | Delete Buffers to the Right | n |
[b | Prev Buffer | n |
[B | Move buffer prev | n |
]b | Next Buffer | n |
]B | Move buffer next | n |
<S-h> | Prev Buffer | n |
<S-l> | Next Buffer | n |
Key | Description | Mode |
---|
<leader>cF | Format Injected Langs | n, v |
Key | Description | Mode |
---|
<c-s> | Toggle Flash Search | c |
r | Remote Flash | o |
R | Treesitter Search | o, x |
s | Flash | n, o, x |
S | Flash Treesitter | n, o, x |
Key | Description | Mode |
---|
<leader>sr | Search and Replace | n, v |
Key | Description | Mode |
---|
<leader>cm | Mason | n |
Key | Description | Mode |
---|
<leader>be | Buffer Explorer | n |
<leader>e | Explorer NeoTree (Root Dir) | n |
<leader>E | Explorer NeoTree (cwd) | n |
<leader>fe | Explorer NeoTree (Root Dir) | n |
<leader>fE | Explorer NeoTree (cwd) | n |
<leader>ge | Git Explorer | n |
Key | Description | Mode |
---|
<c-b> | Scroll Backward | n, i, s |
<c-f> | Scroll Forward | n, i, s |
<leader>sn | +noice | n |
<leader>sna | Noice All | n |
<leader>snd | Dismiss All | n |
<leader>snh | Noice History | n |
<leader>snl | Noice Last Message | n |
<leader>snt | Noice Picker (Telescope/FzfLua) | n |
<S-Enter> | Redirect Cmdline | c |
Key | Description | Mode |
---|
<bs> | Decrement Selection | x |
<c-space> | Increment Selection | n |
Key | Description | Mode |
---|
<leader>qd | Don't Save Current Session | n |
<leader>ql | Restore Last Session | n |
<leader>qs | Restore Session | n |
<leader>qS | Select Session | n |
Key | Description | Mode |
---|
<leader>un | Dismiss All Notifications | n |
Key | Description | Mode |
---|
<leader><space> | Find Files (Root Dir) | n |
<leader>, | Switch Buffer | n |
<leader>/ | Grep (Root Dir) | n |
<leader>: | Command History | n |
<leader>fb | Buffers | n |
<leader>fc | Find Config File | n |
<leader>ff | Find Files (Root Dir) | n |
<leader>fF | Find Files (cwd) | n |
<leader>fg | Find Files (git-files) | n |
<leader>fr | Recent | n |
<leader>fR | Recent (cwd) | n |
<leader>gc | Commits | n |
<leader>gs | Status | n |
<leader>s" | Registers | n |
<leader>sa | Auto Commands | n |
<leader>sb | Buffer | n |
<leader>sc | Command History | n |
<leader>sC | Commands | n |
<leader>sd | Document Diagnostics | n |
<leader>sD | Workspace Diagnostics | n |
<leader>sg | Grep (Root Dir) | n |
<leader>sG | Grep (cwd) | n |
<leader>sh | Help Pages | n |
<leader>sH | Search Highlight Groups | n |
<leader>sj | Jumplist | n |
<leader>sk | Key Maps | n |
<leader>sl | Location List | n |
<leader>sm | Jump to Mark | n |
<leader>sM | Man Pages | n |
<leader>so | Options | n |
<leader>sq | Quickfix List | n |
<leader>sR | Resume | n |
<leader>ss | Goto Symbol | n |
<leader>sS | Goto Symbol (Workspace) | n |
<leader>sw | Word (Root Dir) | n |
<leader>sW | Word (cwd) | n |
<leader>sw | Selection (Root Dir) | v |
<leader>sW | Selection (cwd) | v |
<leader>uC | Colorscheme with Preview | n |
Key | Description | Mode |
---|
<leader>st | Todo | n |
<leader>sT | Todo/Fix/Fixme | n |
<leader>xt | Todo (Trouble) | n |
<leader>xT | Todo/Fix/Fixme (Trouble) | n |
[t | Previous Todo Comment | n |
]t | Next Todo Comment | n |
Key | Description | Mode |
---|
<leader>cs | Symbols (Trouble) | n |
<leader>cS | LSP references/definitions/... (Trouble) | n |
<leader>xL | Location List (Trouble) | n |
<leader>xQ | Quickfix List (Trouble) | n |
<leader>xx | Diagnostics (Trouble) | n |
<leader>xX | Buffer Diagnostics (Trouble) | n |
[q | Previous Trouble/Quickfix Item | n |
]q | Next Trouble/Quickfix Item | n |
Key | Description | Mode |
---|
<c-w><space> | Window Hydra Mode (which-key) | n |
<leader>? | Buffer Keymaps (which-key) | n |
Part of lazyvim.plugins.extras.ai.copilot-chat
Key | Description | Mode |
---|
<c-s> | Submit Prompt | n |
<leader>a | +ai | n, v |
<leader>aa | Toggle (CopilotChat) | n, v |
<leader>ap | Prompt Actions (CopilotChat) | n, v |
<leader>aq | Quick Chat (CopilotChat) | n, v |
<leader>ax | Clear (CopilotChat) | n, v |
Part of lazyvim.plugins.extras.coding.mini-surround
Key | Description | Mode |
---|
gsa | Add Surrounding | n, v |
gsd | Delete Surrounding | n |
gsf | Find Right Surrounding | n |
gsF | Find Left Surrounding | n |
gsh | Highlight Surrounding | n |
gsn | Update MiniSurround.config.n_lines | n |
gsr | Replace Surrounding | n |
Part of lazyvim.plugins.extras.coding.neogen
Key | Description | Mode |
---|
<leader>cn | Generate Annotations (Neogen) | n |
Part of lazyvim.plugins.extras.coding.yanky
Key | Description | Mode |
---|
<leader>p | Open Yank History | n, x |
<p | Put and Indent Left | n |
<P | Put Before and Indent Left | n |
=p | Put After Applying a Filter | n |
=P | Put Before Applying a Filter | n |
>p | Put and Indent Right | n |
>P | Put Before and Indent Right | n |
[p | Put Indented Before Cursor (Linewise) | n |
[P | Put Indented Before Cursor (Linewise) | n |
[y | Cycle Forward Through Yank History | n |
]p | Put Indented After Cursor (Linewise) | n |
]P | Put Indented After Cursor (Linewise) | n |
]y | Cycle Backward Through Yank History | n |
gp | Put Text After Selection | n, x |
gP | Put Text Before Selection | n, x |
p | Put Text After Cursor | n, x |
P | Put Text Before Cursor | n, x |
y | Yank Text | n, x |
Part of lazyvim.plugins.extras.dap.core
Key | Description | Mode |
---|
<leader>d | +debug | n, v |
<leader>da | Run with Args | n |
<leader>db | Toggle Breakpoint | n |
<leader>dB | Breakpoint Condition | n |
<leader>dc | Run/Continue | n |
<leader>dC | Run to Cursor | n |
<leader>dg | Go to Line (No Execute) | n |
<leader>di | Step Into | n |
<leader>dj | Down | n |
<leader>dk | Up | n |
<leader>dl | Run Last | n |
<leader>do | Step Out | n |
<leader>dO | Step Over | n |
<leader>dp | Pause | n |
<leader>dr | Toggle REPL | n |
<leader>ds | Session | n |
<leader>dt | Terminate | n |
<leader>dw | Widgets | n |
Part of lazyvim.plugins.extras.dap.core
Key | Description | Mode |
---|
<leader>de | Eval | n, v |
<leader>du | Dap UI | n |
Part of lazyvim.plugins.extras.editor.aerial
Key | Description | Mode |
---|
<leader>cs | Aerial (Symbols) | n |
Part of lazyvim.plugins.extras.editor.aerial
Key | Description | Mode |
---|
<leader>ss | Goto Symbol (Aerial) | n |
Part of lazyvim.plugins.extras.editor.dial
Key | Description | Mode |
---|
<C-a> | Increment | n, v |
<C-x> | Decrement | n, v |
g<C-a> | Increment | n, v |
g<C-x> | Decrement | n, v |
Part of lazyvim.plugins.extras.editor.fzf
Key | Description | Mode |
---|
<leader><space> | Find Files (Root Dir) | n |
<leader>, | Switch Buffer | n |
<leader>/ | Grep (Root Dir) | n |
<leader>: | Command History | n |
<leader>fb | Buffers | n |
<leader>fc | Find Config File | n |
<leader>ff | Find Files (Root Dir) | n |
<leader>fF | Find Files (cwd) | n |
<leader>fg | Find Files (git-files) | n |
<leader>fr | Recent | n |
<leader>fR | Recent (cwd) | n |
<leader>gc | Commits | n |
<leader>gs | Status | n |
<leader>s" | Registers | n |
<leader>sa | Auto Commands | n |
<leader>sb | Buffer | n |
<leader>sc | Command History | n |
<leader>sC | Commands | n |
<leader>sd | Document Diagnostics | n |
<leader>sD | Workspace Diagnostics | n |
<leader>sg | Grep (Root Dir) | n |
<leader>sG | Grep (cwd) | n |
<leader>sh | Help Pages | n |
<leader>sH | Search Highlight Groups | n |
<leader>sj | Jumplist | n |
<leader>sk | Key Maps | n |
<leader>sl | Location List | n |
<leader>sm | Jump to Mark | n |
<leader>sM | Man Pages | n |
<leader>sq | Quickfix List | n |
<leader>sR | Resume | n |
<leader>ss | Goto Symbol | n |
<leader>sS | Goto Symbol (Workspace) | n |
<leader>sw | Word (Root Dir) | n |
<leader>sW | Word (cwd) | n |
<leader>sw | Selection (Root Dir) | v |
<leader>sW | Selection (cwd) | v |
<leader>uC | Colorscheme with Preview | n |
Part of lazyvim.plugins.extras.editor.fzf
Key | Description | Mode |
---|
<leader>st | Todo | n |
<leader>sT | Todo/Fix/Fixme | n |
Part of lazyvim.plugins.extras.editor.harpoon2
Key | Description | Mode |
---|
<leader>1 | Harpoon to File 1 | n |
<leader>2 | Harpoon to File 2 | n |
<leader>3 | Harpoon to File 3 | n |
<leader>4 | Harpoon to File 4 | n |
<leader>5 | Harpoon to File 5 | n |
<leader>h | Harpoon Quick Menu | n |
<leader>H | Harpoon File | n |
Part of lazyvim.plugins.extras.editor.illuminate
Key | Description | Mode |
---|
[[ | Prev Reference | n |
]] | Next Reference | n |
Part of lazyvim.plugins.extras.editor.leap
Key | Description | Mode |
---|
gs | Leap from Windows | n, o, x |
s | Leap Forward to | n, o, x |
S | Leap Backward to | n, o, x |
Part of lazyvim.plugins.extras.editor.leap
Key | Description | Mode |
---|
gz | +surround | n |
Part of lazyvim.plugins.extras.editor.mini-diff
Key | Description | Mode |
---|
<leader>go | Toggle mini.diff overlay | n |
Part of lazyvim.plugins.extras.editor.mini-files
Key | Description | Mode |
---|
<leader>fm | Open mini.files (Directory of Current File) | n |
<leader>fM | Open mini.files (cwd) | n |
Part of lazyvim.plugins.extras.editor.outline
Key | Description | Mode |
---|
<leader>cs | Toggle Outline | n |
Part of lazyvim.plugins.extras.editor.overseer
Key | Description | Mode |
---|
<leader>ob | Task builder | n |
<leader>oc | Clear cache | n |
<leader>oi | Overseer Info | n |
<leader>oo | Run task | n |
<leader>oq | Action recent task | n |
<leader>ot | Task action | n |
<leader>ow | Task list | n |
Part of lazyvim.plugins.extras.editor.refactoring
Key | Description | Mode |
---|
<leader>r | +refactor | n, v |
<leader>rb | Extract Block | n |
<leader>rc | Debug Cleanup | n |
<leader>rf | Extract Block To File | n |
<leader>rf | Extract Function | v |
<leader>rF | Extract Function To File | v |
<leader>ri | Inline Variable | n, v |
<leader>rp | Debug Print Variable | n, v |
<leader>rP | Debug Print | n |
<leader>rs | Refactor | v |
<leader>rx | Extract Variable | v |
Part of lazyvim.plugins.extras.editor.telescope
Key | Description | Mode |
---|
<leader><space> | Find Files (Root Dir) | n |
<leader>, | Switch Buffer | n |
<leader>/ | Grep (Root Dir) | n |
<leader>: | Command History | n |
<leader>fb | Buffers | n |
<leader>fc | Find Config File | n |
<leader>ff | Find Files (Root Dir) | n |
<leader>fF | Find Files (cwd) | n |
<leader>fg | Find Files (git-files) | n |
<leader>fr | Recent | n |
<leader>fR | Recent (cwd) | n |
<leader>gc | Commits | n |
<leader>gs | Status | n |
<leader>s" | Registers | n |
<leader>sa | Auto Commands | n |
<leader>sb | Buffer | n |
<leader>sc | Command History | n |
<leader>sC | Commands | n |
<leader>sd | Document Diagnostics | n |
<leader>sD | Workspace Diagnostics | n |
<leader>sg | Grep (Root Dir) | n |
<leader>sG | Grep (cwd) | n |
<leader>sh | Help Pages | n |
<leader>sH | Search Highlight Groups | n |
<leader>sj | Jumplist | n |
<leader>sk | Key Maps | n |
<leader>sl | Location List | n |
<leader>sm | Jump to Mark | n |
<leader>sM | Man Pages | n |
<leader>so | Options | n |
<leader>sq | Quickfix List | n |
<leader>sR | Resume | n |
<leader>ss | Goto Symbol | n |
<leader>sS | Goto Symbol (Workspace) | n |
<leader>sw | Word (Root Dir) | n |
<leader>sW | Word (cwd) | n |
<leader>sw | Selection (Root Dir) | v |
<leader>sW | Selection (cwd) | v |
<leader>uC | Colorscheme with Preview | n |
Part of lazyvim.plugins.extras.lang.ansible
Key | Description | Mode |
---|
<leader>ta | Ansible Run Playbook/Role | n |
Part of lazyvim.plugins.extras.lang.markdown
Key | Description | Mode |
---|
<leader>cp | Markdown Preview | n |
Part of lazyvim.plugins.extras.lang.python
Key | Description | Mode |
---|
<leader>dPc | Debug Class | n |
<leader>dPt | Debug Method | n |
Part of lazyvim.plugins.extras.lang.python
Key | Description | Mode |
---|
<leader>cv | Select VirtualEnv | n |
Part of lazyvim.plugins.extras.lang.sql
Key | Description | Mode |
---|
<leader>D | Toggle DBUI | n |
Part of lazyvim.plugins.extras.lang.tex
Key | Description | Mode |
---|
<localLeader>l | +vimtex | n |
Part of lazyvim.plugins.extras.test.core
Key | Description | Mode |
---|
<leader>t | +test | n |
<leader>tl | Run Last (Neotest) | n |
<leader>to | Show Output (Neotest) | n |
<leader>tO | Toggle Output Panel (Neotest) | n |
<leader>tr | Run Nearest (Neotest) | n |
<leader>ts | Toggle Summary (Neotest) | n |
<leader>tS | Stop (Neotest) | n |
<leader>tt | Run File (Neotest) | n |
<leader>tT | Run All Test Files (Neotest) | n |
<leader>tw | Toggle Watch (Neotest) | n |
Part of lazyvim.plugins.extras.test.core
Key | Description | Mode |
---|
<leader>td | Debug Nearest | n |
Part of lazyvim.plugins.extras.ui.edgy
Key | Description | Mode |
---|
<leader>ue | Edgy Toggle | n |
<leader>uE | Edgy Select Window | n |
Part of lazyvim.plugins.extras.util.chezmoi
Key | Description | Mode |
---|
<leader>sz | Chezmoi | n |
Part of lazyvim.plugins.extras.util.gitui
Key | Description | Mode |
---|
<leader>gg | GitUi (Root Dir) | n |
<leader>gG | GitUi (cwd) | n |
Part of lazyvim.plugins.extras.util.octo
Key | Description | Mode |
---|
<leader>a | +assignee (Octo) | n |
<leader>c | +comment/code (Octo) | n |
<leader>gi | List Issues (Octo) | n |
<leader>gI | Search Issues (Octo) | n |
<leader>gp | List PRs (Octo) | n |
<leader>gP | Search PRs (Octo) | n |
<leader>gr | List Repos (Octo) | n |
<leader>gS | Search (Octo) | n |
<leader>i | +issue (Octo) | n |
<leader>l | +label (Octo) | n |
<leader>p | +pr (Octo) | n |
<leader>r | +react (Octo) | n |
<leader>v | +review (Octo) | n |
Part of lazyvim.plugins.extras.util.project
Key | Description | Mode |
---|
<leader>fp | Projects | n |
Part of lazyvim.plugins.extras.util.project
Key | Description | Mode |
---|
<leader>fp | Projects | n |
Part of lazyvim.plugins.extras.util.rest
Key | Description | Mode |
---|
<leader>R | +Rest | n |
<leader>Rb | Open scratchpad | n |
<leader>Rc | Copy as cURL | n |
<leader>RC | Paste from curl | n |
<leader>Rg | Download GraphQL schema | n |
<leader>Ri | Inspect current request | n |
<leader>Rn | Jump to next request | n |
<leader>Rp | Jump to previous request | n |
<leader>Rq | Close window | n |
<leader>Rr | Replay the last request | n |
<leader>Rs | Send the request | n |
<leader>RS | Show stats | n |
<leader>Rt | Toggle headers/body | n |