by getoffmyyawn · 3y ago · 0 comments
Learning to edit primarily via ex mode in vi and vim (commands that start with a ':') is the true vi super power in my opinion.
edit: typos
It took some study of man pages and trial and error to achieve what I needed, but I was able to get it done.
I know there are Linux distributions now that don't even include ed by default, even though it's in POSIX and occasionally used in scripts.
best shell available was ksh, and the only really usable mode was vi mode.
in addition the only worthwhile editor available on this system and customers was vi. (IIRC emacs was obtainable but not installable on customers machines, and heck of a lot slower than vi)
:2s/wa/i/g