Few notes for nice but not well-know usages of ed and ed-based editors
ed
+
next / previous -
- CAPS instead of ! for forcing
- dot/^C for ending mode
a
ppend; c
hange; i
nsert (before)
,p
print everything
Vim
- ^a → iterate
- ^x → de-iterate
- % → next (curly/square) bracket
- ^ → start of the line
- $ → end of the line
- window-related
- ^w = → tile window
- ^w j/k → previous/next
- ^w c → close window
- ^w f → edit cursor-selected file
- spelling (variables: spell & spellang)
- ]s → next misspelled word
- [s → previous misspelled word
- z= → find suggestions
- zg → add to wordlist