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
<C-h>Go to left windown, t
<C-j>Go to lower windown, t
<C-k>Go to upper windown, t
<C-l>Go to right windown, t
<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
<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
<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 Word Wrapn
<leader>uLToggle Relative Line Numbersn
<leader>ulToggle Line Numbersn
<leader>udToggle Diagnosticsn
<leader>ucToggle Concealn
<leader>uhToggle Inlay Hintsn
<leader>uTToggle Treesitter Highlightn
<leader>ubToggle Backgroundn
<leader>ggLazygit (root dir)n
<leader>gGLazygit (cwd)n
<leader>qqQuit alln
<leader>uiInspect Posn
<leader>LLazyVim Changelogn
<leader>ftTerminal (root dir)n
<leader>fTTerminal (cwd)n
<c-/>Terminal (root dir)n
<c-_>which_key_ignoren, t
<esc><esc>Enter Normal Modet
<C-/>Hide Terminalt
<leader>wwOther windown
<leader>wdDelete windown
<leader>w-Split window belown
<leader>w|Split window rightn
<leader>-Split window belown
<leader>|Split window rightn
<leader><tab>lLast Tabn
<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
gDGoto Declarationn
gIGoto Implementationn
gyGoto T[y]pe Definitionn
KHovern
gKSignature Helpn
<c-k>Signature Helpi
<leader>caCode Actionn, v
<leader>cASource Actionn
<leader>crRenamen

bufferline.nvim

KeyDescriptionMode
<leader>blDelete buffers to the leftn
<leader>boDelete other buffersn
<leader>bpToggle pinn
<leader>bPDelete non-pinned buffersn
<leader>brDelete buffers to the rightn
[bPrev buffern
]bNext buffern
<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

mason.nvim

KeyDescriptionMode
<leader>cmMasonn

mini.bufremove

KeyDescriptionMode
<leader>bdDelete Buffern
<leader>bDDelete Buffer (Force)n

mini.pairs

KeyDescriptionMode
<leader>upToggle auto pairsn

mini.surround

KeyDescriptionMode
gsaAdd surroundingn, v
gsdDelete surroundingn
gsfFind right surroundingn
gsFFind left surroundingn
gshHighlight surroundingn
gsnUpdate MiniSurround.config.n_linesn
gsrReplace surroundingn

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>snaNoice Alln
<leader>sndDismiss Alln
<leader>snhNoice Historyn
<leader>snlNoice Last Messagen
<S-Enter>Redirect Cmdlinec

nvim-notify

KeyDescriptionMode
<leader>unDismiss all Notificationsn

nvim-spectre

KeyDescriptionMode
<leader>srReplace in files (Spectre)n

nvim-treesitter

KeyDescriptionMode
<bs>Decrement selectionx
<c-space>Increment selectionn

nvim-treesitter-context

KeyDescriptionMode
<leader>utToggle Treesitter Contextn

persistence.nvim

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

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>skKey Mapsn
<leader>smJump to Markn
<leader>sMMan Pagesn
<leader>soOptionsn
<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>xLLocation List (Trouble)n
<leader>xQQuickfix List (Trouble)n
<leader>xxDocument Diagnostics (Trouble)n
<leader>xXWorkspace Diagnostics (Trouble)n
[qPrevious trouble/quickfix itemn
]qNext trouble/quickfix itemn

vim-illuminate

KeyDescriptionMode
[[Prev Referencen
]]Next Referencen

yanky.nvim

Part of lazyvim.plugins.extras.coding.yanky

KeyDescriptionMode
<leader>pOpen Yank Historyn
<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 yanked text after selectionn, x
gPPut yanked text before selectionn, x
pPut yanked text after cursorn, x
PPut yanked text before cursorn, x
yYank textn, x

nvim-dap

Part of lazyvim.plugins.extras.dap.core

KeyDescriptionMode
<leader>daRun with Argsn
<leader>dbToggle Breakpointn
<leader>dBBreakpoint Conditionn
<leader>dcContinuen
<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

flit.nvim

Part of lazyvim.plugins.extras.editor.leap

KeyDescriptionMode
ffn, o, x
FFn, o, x
ttn, o, x
TTn, o, x

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

symbols-outline.nvim

Part of lazyvim.plugins.extras.editor.symbols-outline

KeyDescriptionMode
<leader>csSymbols Outlinen

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

neotest

Part of lazyvim.plugins.extras.test.core

KeyDescriptionMode
<leader>tlRun Lastn
<leader>toShow Outputn
<leader>tOToggle Output Paneln
<leader>trRun Nearestn
<leader>tsToggle Summaryn
<leader>tSStopn
<leader>ttRun Filen
<leader>tTRun All Test Filesn

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

project.nvim

Part of lazyvim.plugins.extras.util.project

KeyDescriptionMode
<leader>fpProjectsn