Skip to main content

⌨️ 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>.

image

  • default <leader> is <space>
  • default <localleader> is \

General

KeyDescriptionMode
jDownn, x
<Down>Downn, x
kUpn, x
<Up>Upn, x
<C-h>Go to Left Windown
<C-j>Go to Lower Windown
<C-k>Go to Upper Windown
<C-l>Go to Right Windown
<C-Up>Increase Window Heightn
<C-Down>Decrease Window Heightn
<C-Left>Decrease Window Widthn
<C-Right>Increase Window Widthn
<A-j>Move Downn, i, v
<A-k>Move Upn, i, v
<S-h>Prev Buffern
<S-l>Next Buffern
[bPrev Buffern
]bNext Buffern
<leader>bbSwitch to Other Buffern
<leader>`Switch to Other Buffern
<leader>bdDelete Buffern
<leader>boDelete Other Buffersn
<leader>bDDelete Buffer and Windown
<esc>Escape and Clear hlsearchi, n
<leader>urRedraw / Clear hlsearch / Diff Updaten
nNext Search Resultn, x, o
NPrev Search Resultn, x, o
<C-s>Save Filei, x, n, s
<leader>KKeywordprgn
gcoAdd Comment Belown
gcOAdd Comment Aboven
<leader>lLazyn
<leader>fnNew Filen
<leader>xlLocation Listn
<leader>xqQuickfix Listn
[qPrevious Quickfixn
]qNext Quickfixn
<leader>cfFormatn, v
<leader>cdLine Diagnosticsn
]dNext Diagnosticn
[dPrev Diagnosticn
]eNext Errorn
[ePrev Errorn
]wNext Warningn
[wPrev Warningn
<leader>ufToggle Auto Format (Global)n
<leader>uFToggle Auto Format (Buffer)n
<leader>usToggle Spellingn
<leader>uwToggle Wrapn
<leader>uLToggle Relative Numbern
<leader>udToggle Diagnosticsn
<leader>ulToggle Line Numbersn
<leader>ucToggle concealleveln
<leader>uTToggle Treesitter Highlightn
<leader>ubToggle Dark Backgroundn
<leader>uhToggle Inlay Hintsn
<leader>qqQuit Alln
<leader>uiInspect Posn
<leader>uIInspect Treen
<leader>LLazyVim Changelogn
<leader>fTTerminal (cwd)n
<leader>ftTerminal (Root Dir)n
<c-/>Terminal (Root Dir)n
<c-_>which_key_ignoren, t
<C-/>Hide Terminalt
<leader>wWindowsn
<leader>-Split Window Belown
<leader>|Split Window Rightn
<leader>wdDelete Windown
<leader>wmToggle Maximizen
<leader><tab>lLast Tabn
<leader><tab>oClose Other Tabsn
<leader><tab>fFirst Tabn
<leader><tab><tab>New Tabn
<leader><tab>]Next Tabn
<leader><tab>dClose Tabn
<leader><tab>[Previous Tabn

LSP

KeyDescriptionMode
<leader>clLsp Infon
gdGoto Definitionn
grReferencesn
gIGoto Implementationn
gyGoto T[y]pe Definitionn
gDGoto Declarationn
KHovern
gKSignature Helpn
<c-k>Signature Helpi
<leader>caCode Actionn, v
<leader>ccRun Codelensn, v
<leader>cCRefresh & Display Codelensn
<leader>cRRename Filen
<leader>crRenamen
<leader>cASource Actionn
]]Next Referencen
[[Prev Referencen
<a-n>Next Referencen
<a-p>Prev Referencen

bufferline.nvim

KeyDescriptionMode
<leader>blDelete Buffers to the Leftn
<leader>bpToggle Pinn
<leader>bPDelete Non-Pinned Buffersn
<leader>brDelete Buffers to the Rightn
[bPrev Buffern
[BMove buffer prevn
]bNext Buffern
]BMove buffer nextn
<S-h>Prev Buffern
<S-l>Next Buffern

conform.nvim

KeyDescriptionMode
<leader>cFFormat Injected Langsn, v

flash.nvim

KeyDescriptionMode
<c-s>Toggle Flash Searchc
rRemote Flasho
RTreesitter Searcho, x
sFlashn, o, x
SFlash Treesittern, o, x

grug-far.nvim

KeyDescriptionMode
<leader>srSearch and Replacen, v

mason.nvim

KeyDescriptionMode
<leader>cmMasonn

neo-tree.nvim

KeyDescriptionMode
<leader>beBuffer Explorern
<leader>eExplorer NeoTree (Root Dir)n
<leader>EExplorer NeoTree (cwd)n
<leader>feExplorer NeoTree (Root Dir)n
<leader>fEExplorer NeoTree (cwd)n
<leader>geGit Explorern

noice.nvim

KeyDescriptionMode
<c-b>Scroll Backwardn, i, s
<c-f>Scroll Forwardn, i, s
<leader>sn+noicen
<leader>snaNoice Alln
<leader>sndDismiss Alln
<leader>snhNoice Historyn
<leader>snlNoice Last Messagen
<leader>sntNoice Picker (Telescope/FzfLua)n
<S-Enter>Redirect Cmdlinec

nvim-treesitter

KeyDescriptionMode
<bs>Decrement Selectionx
<c-space>Increment Selectionn

persistence.nvim

KeyDescriptionMode
<leader>qdDon't Save Current Sessionn
<leader>qlRestore Last Sessionn
<leader>qsRestore Sessionn
<leader>qSSelect Sessionn

snacks.nvim

KeyDescriptionMode
<leader>unDismiss All Notificationsn

telescope.nvim

KeyDescriptionMode
<leader><space>Find Files (Root Dir)n
<leader>,Switch Buffern
<leader>/Grep (Root Dir)n
<leader>:Command Historyn
<leader>fbBuffersn
<leader>fcFind Config Filen
<leader>ffFind Files (Root Dir)n
<leader>fFFind Files (cwd)n
<leader>fgFind Files (git-files)n
<leader>frRecentn
<leader>fRRecent (cwd)n
<leader>gcCommitsn
<leader>gsStatusn
<leader>s"Registersn
<leader>saAuto Commandsn
<leader>sbBuffern
<leader>scCommand Historyn
<leader>sCCommandsn
<leader>sdDocument Diagnosticsn
<leader>sDWorkspace Diagnosticsn
<leader>sgGrep (Root Dir)n
<leader>sGGrep (cwd)n
<leader>shHelp Pagesn
<leader>sHSearch Highlight Groupsn
<leader>sjJumplistn
<leader>skKey Mapsn
<leader>slLocation Listn
<leader>smJump to Markn
<leader>sMMan Pagesn
<leader>soOptionsn
<leader>sqQuickfix Listn
<leader>sRResumen
<leader>ssGoto Symboln
<leader>sSGoto Symbol (Workspace)n
<leader>swWord (Root Dir)n
<leader>sWWord (cwd)n
<leader>swSelection (Root Dir)v
<leader>sWSelection (cwd)v
<leader>uCColorscheme with Previewn

todo-comments.nvim

KeyDescriptionMode
<leader>stTodon
<leader>sTTodo/Fix/Fixmen
<leader>xtTodo (Trouble)n
<leader>xTTodo/Fix/Fixme (Trouble)n
[tPrevious Todo Commentn
]tNext Todo Commentn

trouble.nvim

KeyDescriptionMode
<leader>csSymbols (Trouble)n
<leader>cSLSP references/definitions/... (Trouble)n
<leader>xLLocation List (Trouble)n
<leader>xQQuickfix List (Trouble)n
<leader>xxDiagnostics (Trouble)n
<leader>xXBuffer Diagnostics (Trouble)n
[qPrevious Trouble/Quickfix Itemn
]qNext Trouble/Quickfix Itemn

which-key.nvim

KeyDescriptionMode
<c-w><space>Window Hydra Mode (which-key)n
<leader>?Buffer Keymaps (which-key)n

CopilotChat.nvim

Part of lazyvim.plugins.extras.ai.copilot-chat

KeyDescriptionMode
<c-s>Submit Promptn
<leader>a+ain, v
<leader>aaToggle (CopilotChat)n, v
<leader>adDiagnostic Help (CopilotChat)n, v
<leader>apPrompt Actions (CopilotChat)n, v
<leader>aqQuick Chat (CopilotChat)n, v
<leader>axClear (CopilotChat)n, v

mini.surround

Part of lazyvim.plugins.extras.coding.mini-surround

KeyDescriptionMode
gsaAdd Surroundingn, v
gsdDelete Surroundingn
gsfFind Right Surroundingn
gsFFind Left Surroundingn
gshHighlight Surroundingn
gsnUpdate MiniSurround.config.n_linesn
gsrReplace Surroundingn

neogen

Part of lazyvim.plugins.extras.coding.neogen

KeyDescriptionMode
<leader>cnGenerate Annotations (Neogen)n

yanky.nvim

Part of lazyvim.plugins.extras.coding.yanky

KeyDescriptionMode
<leader>pOpen Yank Historyn, x
<pPut and Indent Leftn
<PPut Before and Indent Leftn
=pPut After Applying a Filtern
=PPut Before Applying a Filtern
>pPut and Indent Rightn
>PPut Before and Indent Rightn
[pPut Indented Before Cursor (Linewise)n
[PPut Indented Before Cursor (Linewise)n
[yCycle Forward Through Yank Historyn
]pPut Indented After Cursor (Linewise)n
]PPut Indented After Cursor (Linewise)n
]yCycle Backward Through Yank Historyn
gpPut Text After Selectionn, x
gPPut Text Before Selectionn, x
pPut Text After Cursorn, x
PPut Text Before Cursorn, x
yYank Textn, x

nvim-dap

Part of lazyvim.plugins.extras.dap.core

KeyDescriptionMode
<leader>d+debugn, v
<leader>daRun with Argsn
<leader>dbToggle Breakpointn
<leader>dBBreakpoint Conditionn
<leader>dcRun/Continuen
<leader>dCRun to Cursorn
<leader>dgGo to Line (No Execute)n
<leader>diStep Inton
<leader>djDownn
<leader>dkUpn
<leader>dlRun Lastn
<leader>doStep Outn
<leader>dOStep Overn
<leader>dpPausen
<leader>drToggle REPLn
<leader>dsSessionn
<leader>dtTerminaten
<leader>dwWidgetsn

nvim-dap-ui

Part of lazyvim.plugins.extras.dap.core

KeyDescriptionMode
<leader>deEvaln, v
<leader>duDap UIn

aerial.nvim

Part of lazyvim.plugins.extras.editor.aerial

KeyDescriptionMode
<leader>csAerial (Symbols)n

telescope.nvim

Part of lazyvim.plugins.extras.editor.aerial

KeyDescriptionMode
<leader>ssGoto Symbol (Aerial)n

dial.nvim

Part of lazyvim.plugins.extras.editor.dial

KeyDescriptionMode
<C-a>Incrementn, v
<C-x>Decrementn, v
g<C-a>Incrementn, v
g<C-x>Decrementn, v

fzf-lua

Part of lazyvim.plugins.extras.editor.fzf

KeyDescriptionMode
<leader><space>Find Files (Root Dir)n
<leader>,Switch Buffern
<leader>/Grep (Root Dir)n
<leader>:Command Historyn
<leader>fbBuffersn
<leader>fcFind Config Filen
<leader>ffFind Files (Root Dir)n
<leader>fFFind Files (cwd)n
<leader>fgFind Files (git-files)n
<leader>frRecentn
<leader>fRRecent (cwd)n
<leader>gcCommitsn
<leader>gsStatusn
<leader>s"Registersn
<leader>saAuto Commandsn
<leader>sbBuffern
<leader>scCommand Historyn
<leader>sCCommandsn
<leader>sdDocument Diagnosticsn
<leader>sDWorkspace Diagnosticsn
<leader>sgGrep (Root Dir)n
<leader>sGGrep (cwd)n
<leader>shHelp Pagesn
<leader>sHSearch Highlight Groupsn
<leader>sjJumplistn
<leader>skKey Mapsn
<leader>slLocation Listn
<leader>smJump to Markn
<leader>sMMan Pagesn
<leader>sqQuickfix Listn
<leader>sRResumen
<leader>ssGoto Symboln
<leader>sSGoto Symbol (Workspace)n
<leader>swWord (Root Dir)n
<leader>sWWord (cwd)n
<leader>swSelection (Root Dir)v
<leader>sWSelection (cwd)v
<leader>uCColorscheme with Previewn

todo-comments.nvim

Part of lazyvim.plugins.extras.editor.fzf

KeyDescriptionMode
<leader>stTodon
<leader>sTTodo/Fix/Fixmen

harpoon

Part of lazyvim.plugins.extras.editor.harpoon2

KeyDescriptionMode
<leader>1Harpoon to File 1n
<leader>2Harpoon to File 2n
<leader>3Harpoon to File 3n
<leader>4Harpoon to File 4n
<leader>5Harpoon to File 5n
<leader>hHarpoon Quick Menun
<leader>HHarpoon Filen

vim-illuminate

Part of lazyvim.plugins.extras.editor.illuminate

KeyDescriptionMode
[[Prev Referencen
]]Next Referencen

leap.nvim

Part of lazyvim.plugins.extras.editor.leap

KeyDescriptionMode
gsLeap from Windowsn, o, x
sLeap Forward ton, o, x
SLeap Backward ton, o, x

mini.surround

Part of lazyvim.plugins.extras.editor.leap

KeyDescriptionMode
gz+surroundn

mini.diff

Part of lazyvim.plugins.extras.editor.mini-diff

KeyDescriptionMode
<leader>goToggle mini.diff overlayn

mini.files

Part of lazyvim.plugins.extras.editor.mini-files

KeyDescriptionMode
<leader>fmOpen mini.files (Directory of Current File)n
<leader>fMOpen mini.files (cwd)n

outline.nvim

Part of lazyvim.plugins.extras.editor.outline

KeyDescriptionMode
<leader>csToggle Outlinen

overseer.nvim

Part of lazyvim.plugins.extras.editor.overseer

KeyDescriptionMode
<leader>obTask buildern
<leader>ocClear cachen
<leader>oiOverseer Infon
<leader>ooRun taskn
<leader>oqAction recent taskn
<leader>otTask actionn
<leader>owTask listn

refactoring.nvim

Part of lazyvim.plugins.extras.editor.refactoring

KeyDescriptionMode
<leader>r+refactorn, v
<leader>rbExtract Blockn
<leader>rcDebug Cleanupn
<leader>rfExtract Block To Filen
<leader>rfExtract Functionv
<leader>rFExtract Function To Filev
<leader>riInline Variablen, v
<leader>rpDebug Print Variablen, v
<leader>rPDebug Printn
<leader>rsRefactorv
<leader>rxExtract Variablev

telescope.nvim

Part of lazyvim.plugins.extras.editor.telescope

KeyDescriptionMode
<leader><space>Find Files (Root Dir)n
<leader>,Switch Buffern
<leader>/Grep (Root Dir)n
<leader>:Command Historyn
<leader>fbBuffersn
<leader>fcFind Config Filen
<leader>ffFind Files (Root Dir)n
<leader>fFFind Files (cwd)n
<leader>fgFind Files (git-files)n
<leader>frRecentn
<leader>fRRecent (cwd)n
<leader>gcCommitsn
<leader>gsStatusn
<leader>s"Registersn
<leader>saAuto Commandsn
<leader>sbBuffern
<leader>scCommand Historyn
<leader>sCCommandsn
<leader>sdDocument Diagnosticsn
<leader>sDWorkspace Diagnosticsn
<leader>sgGrep (Root Dir)n
<leader>sGGrep (cwd)n
<leader>shHelp Pagesn
<leader>sHSearch Highlight Groupsn
<leader>sjJumplistn
<leader>skKey Mapsn
<leader>slLocation Listn
<leader>smJump to Markn
<leader>sMMan Pagesn
<leader>soOptionsn
<leader>sqQuickfix Listn
<leader>sRResumen
<leader>ssGoto Symboln
<leader>sSGoto Symbol (Workspace)n
<leader>swWord (Root Dir)n
<leader>sWWord (cwd)n
<leader>swSelection (Root Dir)v
<leader>sWSelection (cwd)v
<leader>uCColorscheme with Previewn

nvim-ansible

Part of lazyvim.plugins.extras.lang.ansible

KeyDescriptionMode
<leader>taAnsible Run Playbook/Rolen

markdown-preview.nvim

Part of lazyvim.plugins.extras.lang.markdown

KeyDescriptionMode
<leader>cpMarkdown Previewn

nvim-dap-python

Part of lazyvim.plugins.extras.lang.python

KeyDescriptionMode
<leader>dPcDebug Classn
<leader>dPtDebug Methodn

venv-selector.nvim

Part of lazyvim.plugins.extras.lang.python

KeyDescriptionMode
<leader>cvSelect VirtualEnvn

vim-dadbod-ui

Part of lazyvim.plugins.extras.lang.sql

KeyDescriptionMode
<leader>DToggle DBUIn

vimtex

Part of lazyvim.plugins.extras.lang.tex

KeyDescriptionMode
<localLeader>l+vimtexn

neotest

Part of lazyvim.plugins.extras.test.core

KeyDescriptionMode
<leader>t+testn
<leader>tlRun Last (Neotest)n
<leader>toShow Output (Neotest)n
<leader>tOToggle Output Panel (Neotest)n
<leader>trRun Nearest (Neotest)n
<leader>tsToggle Summary (Neotest)n
<leader>tSStop (Neotest)n
<leader>ttRun File (Neotest)n
<leader>tTRun All Test Files (Neotest)n
<leader>twToggle Watch (Neotest)n

nvim-dap

Part of lazyvim.plugins.extras.test.core

KeyDescriptionMode
<leader>tdDebug Nearestn

edgy.nvim

Part of lazyvim.plugins.extras.ui.edgy

KeyDescriptionMode
<leader>ueEdgy Togglen
<leader>uEEdgy Select Windown

chezmoi.nvim

Part of lazyvim.plugins.extras.util.chezmoi

KeyDescriptionMode
<leader>szChezmoin

mason.nvim

Part of lazyvim.plugins.extras.util.gitui

KeyDescriptionMode
<leader>ggGitUi (Root Dir)n
<leader>gGGitUi (cwd)n

octo.nvim

Part of lazyvim.plugins.extras.util.octo

KeyDescriptionMode
<leader>a+assignee (Octo)n
<leader>c+comment/code (Octo)n
<leader>giList Issues (Octo)n
<leader>gISearch Issues (Octo)n
<leader>gpList PRs (Octo)n
<leader>gPSearch PRs (Octo)n
<leader>grList Repos (Octo)n
<leader>gSSearch (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

fzf-lua

Part of lazyvim.plugins.extras.util.project

KeyDescriptionMode
<leader>fpProjectsn

telescope.nvim

Part of lazyvim.plugins.extras.util.project

KeyDescriptionMode
<leader>fpProjectsn

kulala.nvim

Part of lazyvim.plugins.extras.util.rest

KeyDescriptionMode
<leader>R+Restn
<leader>RbOpen scratchpadn
<leader>RcCopy as cURLn
<leader>RCPaste from curln
<leader>RgDownload GraphQL scheman
<leader>RiInspect current requestn
<leader>RnJump to next requestn
<leader>RpJump to previous requestn
<leader>RqClose windown
<leader>RrReplay the last requestn
<leader>RsSend the requestn
<leader>RSShow statsn
<leader>RtToggle headers/bodyn