Registers, Macros, Marks & the Ecosystem
Registers — Multiple Clipboards
"ayy yank the line into register a
"ap paste from register a
# beyond the default unnamed register, hold several copied snippets at onceMacros — Recording Repeated Edits
qa ...edits... q record a macro into register a
@a replay it once
10@a replay it 10 timesRecords a keystroke sequence once, replays it across many similar lines — a classic way to automate repetitive transformations without hand-repeating each edit.
Marks & Undo
ma set mark a at cursor position
`a jump back to mark a
u undo (multi-level, not just one step back)
Ctrl+R redo.vimrc & Neovim
~/.vimrc holds persistent settings, keymaps, and plugin config, loaded on every start — a common area of deep personal customization. Neovim is a modernized fork adding async plugin support and Lua configuration while keeping Vim's core editing model and most keybindings.
Why It Persists
Available by default (or trivially installable) on nearly every Unix-like system, runs entirely in a terminal with no GUI needed — invaluable for editing files over SSH on a remote server. Many developers also use a "Vim mode" plugin in another editor (like VS Code) to keep the modal keybindings while still getting that editor's broader ecosystem.
Keep your own version of these notes — editable, searchable, and organised by your stack.
Start free