A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Regular expressions in vi

Keep the first character of a line, but then insert an 'A':

s/^\(.\)/\1A/

NOTE: parentheses and the plus sign must be escaped.