There are a lot of threads pertaining to how to configure Vim/GVim for Perl development on PerlMonks.org. My purpose in posting this question is to try to create, as much as pos
For tidying, I use the following; either \t
to tidy the whole file, or I select a few lines in shift+V
mode and then do \t
nnoremap \t :%!perltidy -q
vnoremap \t :!perltidy -q
Sometimes it's also useful to deparse code. As the above lines, either for the whole file or for a selection.
nnoremap \D :.!perl -MO=Deparse 2>/dev/null
vnoremap \D :!perl -MO=Deparse 2>/dev/null