RTFM · Tools
vim survival and fluency
Editing on a server means vim eventually meets everyone. Survive the first hour honestly, then learn why its modal model repays the investment for decades.

Guaranteed exit paths
:q! # abandon changes, quit
:wq # save, quit
ZZ # synonym save-quit
Esc # return to normal mode from anywhereModal mental model
Normal mode interprets keystrokes as verb+noun commands rather than literal text. Insert mode (i/a/o) enters typing; Esc returns. Compositions become describable intentions rather than mouse marathons.
- Motion nouns: w word, b back-word, 0 line-start, $ line-end, gg doc-top, G doc-bottom.
- Verb prefixes: d delete, y yank, c change, gu lowercase, gU uppercase.
- Combinators compose: dw deletes word, d$ to end-of-line, ciw change inner word.
Practical editing patterns
/pattern<Enter> # search forward
:%s/old/new/gc # whole-file replace with confirmations
:r !date # insert command output
u / Ctrl-r # undo/redoIndispensable structural moves: visual select rows (V), then :sort; or '>' indent on selection. vim rewards thinking in structures bigger than characters.
Working config for sysadmin use
~/.vimrc:
set nocompatible
set number relativenumber
syntax on
set expandtab shiftwidth=4
set incsearch hlsearch
nnoremap <Space> :nohlsearch<CR>Prove it works: deliberate edit capability
open a remote config over SSH, perform targeted multi-spot changes, save confidently, exit deliberately — no consultation needed.
Did we miss something?
If this page left something unanswered, found an error, or there is another subject you would like documented, tell us. Saphira’s documentation grows from real problems people need to solve.
Send feedback or request a new section →
Prefer not to do it yourself?
Everything needed to do the work yourself is documented here and remains free — we charge for human time, not for withholding knowledge. Sometimes the missing resource is simply time. The same people who build Saphira can provide paid professional help with implementation, migration, troubleshooting and administration.