vile is another major successor to vi. For more information about vile, including source code and various precompiled distributions, see http://dickey.his.com/vile/vilel. The following commands might make useful additions to your .vilerc file:
;Preserve current indent on new linesset autoindent;Wrap at the 78th columnset fillcol=78 set wrapwords; Use 4-space indents, not tabsset tabspace=4 set shiftwidth=4 set noti;Allow % to bounce between angles tooset fence-pairs="( )[]{}<>";Inserting these abbreviations inserts the corresponding Perl statement...abb phbp #! /usr/bin/perl -w abb pdbg use Data::Dumper 'Dumper';^Mwarn Dumper [];^[hi abb pbmk use Benchmark qw( cmpthese );^Mcmpthese -10, {};^[O abb pusc use Smart::Comments;^M^M### abb putm use Test::More qw( no_plan ); abb papp ^[:r ~/.code_templates/perl_application.pl^M abb pmod ^[:r ~/.code_templates/perl_module.pm^M