←Back to Guides
๐Ÿ–‹๏ธVim & Neovimโฑ๏ธ 10 min read•Updated October 2026

Vim & Neovim High-Velocity Navigation Cheat Sheet: Motions, Verbs & Macros

Unlock keyboard-only editing speed in Vim, Neovim, and VS Code Vim mode with high-velocity motions, text objects grammar, global regex substitution, and macro automation.

#Vim#Neovim#Linux#Terminal#Hotkeys#Productivity#Text Editing

1. The Four Core Modes of Vim

Vim treats text editing as a conversational language composed of **Verbs** (`c` change, `d` delete, `y` yank/copy) and **Nouns / Motions** (`w` word, `$` end of line, `i"` inside quotes). To return to **Normal Mode** at any time, press Esc or Ctrl + [.
KeyMode / ActionCategoryCopy
iEnter Insert mode before the cursor.Modes
aEnter Insert mode after the cursor (append).Modes
oOpen a new line below the cursor and enter Insert mode.Modes
OOpen a new line above the cursor and enter Insert mode.Modes
vEnter character-wise Visual mode to select text.Visual
VEnter line-wise Visual mode to select whole lines.Visual
Ctrl + VEnter Visual Block mode (column selection for multi-line editing).Visual
:Enter Command-line mode to run ex commands (:w, :q, :wq).Command

2. High-Speed Cursor Motions

Navigate files without lifting your hands from the home row (h, j, k, l):
MotionMovement DescriptionCategoryCopy
w / bJump forward / backward to the beginning of the next word.Words
e / geJump forward / backward to the end of a word.Words
0 / ^Jump to the absolute beginning of the line / first non-blank character.Lines
$Jump to the end of the current line.Lines
gg / GJump to the first line / last line of the entire file.Files
:42 (or 42G)Jump directly to line 42.Files
Ctrl + d / Ctrl + uScroll half-screen down / half-screen up.Scroll
%Jump to the matching bracket, parenthesis, or curly brace ({} [] ()).Brackets

3. Text Objects & Editing Grammar

Combine verbs (`d` delete, `c` change, `y` copy) with modifiers (`i` inside, `a` around) and targets to edit structured code instantly:
ComboAction DescriptionCategoryCopy
ciwChange inside word (deletes current word and enters Insert mode).Words
di"Delete contents inside double quotes without deleting the quotes.Quotes
ca(Change around parentheses (deletes parentheses and their contents).Blocks
citChange inside HTML/XML tag (replaces content between <div>...</div>).Tags
yy / pYank (copy) current line / paste below cursor.Clipboard
ddDelete (cut) entire line.Clipboard
u / Ctrl + rUndo last change / Redo last undone change.History
.Repeat the last editing action at the current cursor position.Repeat

4. Search, Global Regex & Macro Automation

Execute search and replace operations and record repetitive tasks:
Global Search and Replace with Confirmation
:%s/oldPattern/newReplacement/gc

Replaces all occurrences throughout the file, prompting (y/n/a/q) for each match.

Record and Replay a Macro
# 1. Start recording into register "a":
qa

# 2. Perform editing steps...

# 3. Stop recording:
q

# 4. Replay macro 10 times:
10@a

Automates repetitive multiline editing across thousands of lines in seconds.

Split Windows and Navigate
:vsplit   " Split vertically
:split    " Split horizontally
Ctrl+w h  " Move to left split
Ctrl+w l  " Move to right split

Opens multiple buffer views side-by-side in terminal.

๐ŸŽ“Explore More Guides

โœจ