1. Home
  2. /Blog
  3. /Vim Shortcuts I Actually Use (Daily Cheatsheet)
2025-12-124 min readLoading views...Tools

Vim Shortcuts I Actually Use (Daily Cheatsheet)

A practical Vim cheatsheet of motions, edits, search, and file/window commands you’ll use constantly—no trivia, just muscle memory.

VimToolsProductivityEditor

Vim Shortcuts I Actually Use (Daily Cheatsheet)

2025-12-124 min readTools
Vim Shortcuts I Actually Use (Daily Cheatsheet)
Table of contents
Mental model (the one thing to remember)Modes (minimal)Move fast (motions you’ll use constantly)The edits you’ll actually doInsert mode entry (pick 3 and stick to them)Search, replace, and “find the thing”Visual mode (selection that stays useful)Copy/paste that won’t surprise youFiles, buffers, and windows (just enough)Two “power moves” that pay off quicklyTiny cheatsheet: patterns that scaleClosing

Vim gets “hard” when you try to memorize everything at once. Don’t. Learn the 20% you’ll use 80% of the time, then layer on power moves when they solve real problems.

This is the cheatsheet I actually rely on.

Mental model (the one thing to remember)

Most Vim actions are:

  • operator + motion (example: d + w → dw deletes a word)
  • count + (operator/motion) (example: 3w, 2dd)

Common operators:

  • d delete
  • c change (delete then enter insert)
  • y yank (copy)
  • > / < indent / unindent

Modes (minimal)

  • Normal: navigate + edit via commands (default)
  • Insert: type text (i, a, o)
  • Visual: select text (v, V, Ctrl+v)

When in doubt: press Esc.

Move fast (motions you’ll use constantly)

  • h j k l: left / down / up / right
  • w / b: next / previous word
  • e: end of word
  • 0 / ^ / $: start of line / first non-space / end of line
  • gg / G: top / bottom of file
  • { / }: previous / next paragraph (blank-line separated)
  • f{char} / t{char}: jump to (or before) a character on the line
  • ;: repeat last f/t

The edits you’ll actually do

  • x: delete char under cursor
  • dd: delete line
  • D: delete to end of line
  • dw / de / db: delete word (forward / to end / backward)
  • cw: change word
  • cc: change line
  • C: change to end of line
  • ci" / ci' / ci( / ci[ / ci{: change inside quotes / parentheses / brackets / braces
  • di" / di( / etc: delete inside …
  • yi" / ya( / etc: yank inside / around …
  • u undo, Ctrl+r redo

Insert mode entry (pick 3 and stick to them)

  • i: insert before cursor
  • a: append after cursor
  • o / O: new line below / above (and enter insert)

Search, replace, and “find the thing”

  • /text: search forward
  • n / N: next / previous match
  • * / #: search word under cursor forward / backward
  • :%s/old/new/g: replace all in file
  • :%s/old/new/gc: replace with confirmation
  • :noh: clear search highlight

Visual mode (selection that stays useful)

  • v: character-wise selection
  • V: line-wise selection
  • Ctrl+v: block selection (columns)

Then:

  • y yank selection
  • d delete selection
  • c change selection
  • > / < indent / unindent selection

Copy/paste that won’t surprise you

  • yy: yank line
  • p / P: paste after / before cursor
  • "+y: yank to system clipboard (if Vim has clipboard support)
  • "+p: paste from system clipboard

Files, buffers, and windows (just enough)

Buffers (open files):

  • :e file: open file
  • :w: save
  • :q: quit
  • :wq: save + quit
  • :q!: quit without saving

Splits:

  • :split / :vsplit
  • Ctrl+w then h/j/k/l: move between splits
  • Ctrl+w then =: equalize split sizes

Two “power moves” that pay off quickly

  • .: repeat last change (insanely useful)
  • macros:
    • q{a} start recording into register a
    • do the edits
    • q stop
    • @a play macro, 10@a play 10 times

Tiny cheatsheet: patterns that scale

These are the patterns that unlock everything:

  • d + motion: delete
  • c + motion: change
  • y + motion: yank
  • v + motion + operator: select then act
  • count + command: repeat

Closing

If you only learn one thing this week, learn operator + motion and commit . to muscle memory. Everything else becomes incremental instead of overwhelming.

Comments

No comments yet

Loading comments...

Table of contents
Mental model (the one thing to remember)Modes (minimal)Move fast (motions you’ll use constantly)The edits you’ll actually doInsert mode entry (pick 3 and stick to them)Search, replace, and “find the thing”Visual mode (selection that stays useful)Copy/paste that won’t surprise youFiles, buffers, and windows (just enough)Two “power moves” that pay off quicklyTiny cheatsheet: patterns that scaleClosing
or search for other articles
Previous

Scaling Laravel Applications: Practical Guide for High-Traffic Systems

2025-12-10Backend
Next

Basic Custom Cursor Using CSS Only (No JavaScript)

Frontend2026-01-15

Let's Talk.

LinkedInGitHubTwitter

© 2024 idnasirasira.

Designed & Engineered with ♥ in Jakarta.