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

Use Perl-like regular expression in vi

You have to escape some special characters and not others:

s/"\(.\+\)\$/"\1"} = "\1"/

Escape special pluses, capturing parentheses and literal $

use \1 for the captured strings.