LazyVim Cheat Sheet

LazyVim: the Commands

LazyVim is my go-to Neovim setup. Here’s my personal cheat sheet of keybindings for everyday use. From basic editing to search & replace, copilot, window management, and a custom terminal toggle. Happy coding!

See my lazyvim-config for required plugins and custom tweaks.

Modes & Basics

i – insert mode
v / V – visual mode (linewise)
<C-c> – return to normal mode
:w – save file
:q – quit

Navigation

h / j / k / l – move left / down / up / right
0 – go to beginning of line
$ – go to end of line
gg / G – go to first / last line
f(letter) + ; – go to next occurrence of letter
* – go to next word occurrence under cursor
% – go to matching parentheses
<C-o> – go to previous position
<C-i> – go to newer position
<C-u> / <C-d> – move up / down one screen
<C-e> / <C-y> – scroll screen up / down one line
zz – center cursor on screen

Editing

I / A – insert at beginning / end of line
o / O – insert new line below / above
x – delete character
r / R – replace character / overwrite mode
d<move> – delete (motion-based)
dd – delete line
c<move> – change (delete + insert)
gcc / vgc – comment / uncomment line or selection
y<move> – yank (copy)
yy – yank line (copy)
p – paste
<C-v> + I or A + <Esc> – visual block mode (multiline insert)
vi( – select inner parentheses
va( – select outer parentheses
. – repeat last command
u – undo
<C-r> – redo

Search & Replace

f<letter> / F<letter> + ; – find character in line (forward/backward)
s<letter> – jump to search matches via labels
/<pattern> + <C-n> / <C-p> – search & navigate matches
:%s/old/new/gc – search and replace with confirmation
<leader>space – find files
<leader>/ – search project files
<leader>sr – project-wide search & replace

Buffers

<leader>fn – new file
H / L – previous / next buffer
<leader>bd – close buffer
<leader>bp – pin buffer
<leader>bP – close non-pinned buffers

Windows

<leader>| – split window vertically
<leader>- – split window horizontally
<C-h/j/k/l> – navigate between windows
<leader>wm – zoom active window (focus mode)
<leader>wd – close window

Utilities

<leader>e – file explorer
<leader>fp – recent projects
<C-Space> – toggle terminal (custom keymap)
<leader>ud – toggle diagnostics
<leader>gg – LazyGit

GitHub Copilot

<leader>ap – prompt actions
<leader>aa – toggle chat
<C-s> – submit prompt
<C-y> – accept nearest diff
<C-l> – clear chat window


Updated

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *