Skip to content

Instantly share code, notes, and snippets.

@s-en-o
Last active March 11, 2026 05:14
Show Gist options
  • Select an option

  • Save s-en-o/f5aefe64ae9e4f497ef609dd70b61468 to your computer and use it in GitHub Desktop.

Select an option

Save s-en-o/f5aefe64ae9e4f497ef609dd70b61468 to your computer and use it in GitHub Desktop.
LazyVim keyboard shortcut cheatsheet

LazyVim Keymaps Cheatsheet (Markdown)

  • i – Enter Insert mode
  • Esc or Ctrl-[ – Exit to Normal mode
  • <C-s> – Save file
  • <C-q> or <leader>qq – Quit all windows
  • u Undo the last change
  • <C-r> Redo the last undone change
  • UUndo all changes on the current line (reverts the entire line to its original state)
  • dd Delete line
  • V to enter Visual Line mode, Use j / k to select multiple lines. Press gc to toggle comments
  • yy copy, p paste
  • ]d and [d to jump between diagnostics (error)
  • <A-j> and <A-k> move line down and up (A = Alt)
  • h / j / k / l – Left / Down / Up / Right
  • gg / G – Go to top / bottom of file
  • 0 / $ – Start / end of line
  • * – Search word under cursor
  • <C-o> / <C-i> – Jump back / forward
  • <C-h> / <C-w>h Jump to the window on the left (where the explorer usually is)
  • <C-l> / <C-w>l Jump to the window on the right (if explorer is on the right).
  • gd – Go to Definition
  • gy – Go to Type Definition
  • gr – Show References
  • K – Hover info
  • <leader>cr – Rename symbol
  • <leader>ca – Code action
  • gcc – Toggle comment on line
  • gc + visual select – Comment selected lines
  • gco – Add comment line below
  • gcO – Add comment line above
  • /pattern + n/N – Search forward/backward
  • <leader>sg – Search project (grep)
  • <leader>sr – Search and replace in project
  • <leader>bb – Switch buffer
  • <leader>bd – Delete buffer
  • ]b / [b – Next / Previous buffer
  • bP – Close all unpinned buffers (default keymap)
  • bo – Close all buffers except the current one
  • bd – Close the current buffer (also closes the window it's in)
  • bD – Close the current buffer and the window it's in
  • <leader>- – Split window horizontally
  • <leader>| – Split window vertically
  • <C-h/j/k/l> – Move between windows
  • <leader>wd – Close window
  • <leader>e – Toggle file explorer (Neo-Tree)
  • <leader>fp – Find projects
  • i – Find files
  • / – Search text, enter to start navigating, n next text shift+n previous text, i, a, o to edit
  • ]d / [d – Next / Previous diagnostic
  • <leader>gg – Open LazyGit
  • gb – Git blame line
  • <leader>l – Plugin manager
  • <leader>l – Format file
  • <leader>ud – Toggle diagnostics
  • <leader>ul – Toggle line numbers
  • <leader>uw – Toggle word wrap

Note: <leader> is typically Space. Press <leader> to open WhichKey and explore all mappings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment