ahmedjama.com
AJ

Vim motions cheat sheet (LazyVim friendly)

· 4 min read
Vim motions cheat sheet (LazyVim friendly)

Priority 1 — Absolute essentials (Learn first)

These motions cover 80% of daily editing.

Basic movement

KeyAction
h j k lleft / down / up / right
wnext word
bprevious word
eend of word
0start of line
^first non-blank character
$end of line

Go to a specific Line

CommandAction
42Ggo to line 42 (fastest)
:42go to line 42 (exact)
ggtop of file
Gbottom of file
+5move down 5 lines
-3move up 3 lines
:42:10go to line 42, column 10

Undo / Redo

KeyAction
uundo
<C-r>redo
<leader>uundo tree (LazyVim)

Priority 2 — Navigation & searching

File & Code Navigation

KeyAction
/textsearch forward
?textsearch backward
nnext match
Nprevious match
*search word under cursor
#search backward word
%jump to matching () { } []

Jumping (Never lose your place)

KeyAction
gdgo to definition
grreferences
<C-o>jump back
<C-i>jump forward


LazyVim split file navigation

Open split file

# Open vertical split 

:vs file2.lua

# Close vertical split

:close
Ctrl + w + h   ← left
Ctrl + w + l   → right
Ctrl + w + j   ↓
Ctrl + w + k   ↑

# LazyVim also supports 

Alt + h / l / j / k

Priority 3 — Editing power (Where Vim shines)

operator + motion = power

Most Used Editing Commands

CommandAction
dwdelete word
dedelete to end of word
d$delete to end of line
ciwchange inner word
cawchange a word
dddelete line
yyyank (copy) line
ppaste after
Ppaste before

Text objects (Must learn)

ObjectInsideAround
wordiwaw
sentenceisas
paragraphipap
quotesi" i'a" a'
parenthesesi(a(
bracesi{a{
bracketsi[a[

Examples:

  • ci" → change text inside quotes
  • di( → delete inside parentheses
  • dap → delete a paragraph

Priority 4 — Visual mode & blocks

Visual selection

KeyAction
vvisual (character)
Vvisual (line)
<C-v>visual block
oswap selection end
>indent
<outdent

Column editing (Game changer)

<C-v>
select lines
Itext<Esc>

Edits multiple lines at once.


Priority 5 — Scrolling & screen control

KeyAction
<C-d>half page down
<C-u>half page up
<C-f>page down
<C-b>page up
zzcenter cursor
ztcursor top
zbcursor bottom

Priority 6 — Speed & repetition

KeyAction
.repeat last change
;repeat last f/t
,reverse f/t
@:repeat last command

Golden rule

Think in motions, not lines. Combine operators with intent.

Examples:

  • yip → copy paragraph
  • d} → delete to next paragraph
  • ci{ → change block
  • 42G → jump instantly

Final advice

If you only memorise:

  • w b e
  • ciw, di(, dap
  • /, n, *
  • 42G, gg, G
  • .

You’re already dangerous.


Happy hacking in the terminal.

Share: