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
<leader>cfFormatn, v
<leader>ufToggle format on Saven
<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>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>cdLine Diagnosticsn
<leader>clLsp Infon
gdGoto Definitionn
grReferencesn
gDGoto Declarationn
gIGoto Implementationn
gyGoto T[y]pe Definitionn
KHovern
gKSignature Helpn
<c-k>Signature Helpi
]dNext Diagnosticn
[dPrev Diagnosticn
]eNext Errorn
[ePrev Errorn
]wNext Warningn
[wPrev Warningn
<leader>caCode Actionn, v
<leader>cASource Actionn
<leader>crRenamen

bufferline.nvim

KeyDescriptionMode
<leader>bpToggle pinn
<leader>bPDelete non-pinned buffersn

flash.nvim

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

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
gsrReplace surroundingn
gsnUpdate MiniSurround.config.n_linesn

neo-tree.nvim

KeyDescriptionMode
<leader>feExplorer NeoTree (root dir)n
<leader>fEExplorer NeoTree (cwd)n
<leader>eExplorer NeoTree (root dir)n
<leader>EExplorer NeoTree (cwd)n

noice.nvim

KeyDescriptionMode
<S-Enter>Redirect Cmdlinec
<leader>snlNoice Last Messagen
<leader>snhNoice Historyn
<leader>snaNoice Alln
<leader>sndDismiss Alln
<c-f>Scroll forwardi, n, s
<c-b>Scroll backwardi, n, s

nvim-notify

KeyDescriptionMode
<leader>unDismiss all Notificationsn

nvim-spectre

KeyDescriptionMode
<leader>srReplace in files (Spectre)n

nvim-treesitter

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

persistence.nvim

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

telescope.nvim

KeyDescriptionMode
<leader>,Switch Buffern
<leader>/Grep (root dir)n
<leader>:Command Historyn
<leader><space>Find Files (root dir)n
<leader>fbBuffersn
<leader>ffFind Files (root dir)n
<leader>fFFind Files (cwd)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>sMMan Pagesn
<leader>smJump to Markn
<leader>soOptionsn
<leader>sRResumen
<leader>swWord (root dir)n
<leader>sWWord (cwd)n
<leader>swSelection (root dir)v
<leader>sWSelection (cwd)v
<leader>uCColorscheme with previewn
<leader>ssGoto Symboln
<leader>sSGoto Symbol (Workspace)n

todo-comments.nvim

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

trouble.nvim

KeyDescriptionMode
<leader>xxDocument Diagnostics (Trouble)n
<leader>xXWorkspace Diagnostics (Trouble)n
<leader>xLLocation List (Trouble)n
<leader>xQQuickfix List (Trouble)n
[qPrevious trouble/quickfix itemn
]qNext trouble/quickfix itemn

vim-illuminate

KeyDescriptionMode
]]Next Referencen
[[Prev Referencen

yanky.nvim

Part of lazyvim.plugins.extras.coding.yanky

KeyDescriptionMode
<leader>pOpen Yank Historyn
yYank textn, x
pPut yanked text after cursorn, x
PPut yanked text before cursorn, x
gpPut yanked text after selectionn, x
gPPut yanked text before selectionn, x
[yCycle forward through yank historyn
]yCycle backward through yank historyn
]pPut indented after cursor (linewise)n
[pPut indented before cursor (linewise)n
]PPut indented after cursor (linewise)n
[PPut indented before cursor (linewise)n
>pPut and indent rightn
<pPut and indent leftn
>PPut before and indent rightn
<PPut before and indent leftn
=pPut after applying a filtern
=PPut before applying a filtern

nvim-dap

Part of lazyvim.plugins.extras.dap.core

KeyDescriptionMode
<leader>dBBreakpoint Conditionn
<leader>dbToggle Breakpointn
<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>duDap UIn
<leader>deEvaln, v

one-small-step-for-vimkind

Part of lazyvim.plugins.extras.dap.nlua

KeyDescriptionMode
<leader>daLAdapter Lua Servern
<leader>dalAdapter Luan

flit.nvim

Part of lazyvim.plugins.extras.editor.leap

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

leap.nvim

Part of lazyvim.plugins.extras.editor.leap

KeyDescriptionMode
sLeap forward ton, x, o
SLeap backward ton, x, o
gsLeap from windowsn, x, o

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

conform.nvim

Part of lazyvim.plugins.extras.formatting.conform

KeyDescriptionMode
<leader>cFFormat Injected Langsn, v

nvim-dap-python

Part of lazyvim.plugins.extras.lang.python

KeyDescriptionMode
<leader>dPtDebug Methodn
<leader>dPcDebug Classn

venv-selector.nvim

Part of lazyvim.plugins.extras.lang.python

KeyDescriptionMode
<leader>cvSelect VirtualEnvn

neotest

Part of lazyvim.plugins.extras.test.core

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

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