Vim::Helper::TidyFilter - Run perltidy on the buffer when files are loaded or saved.
Used to run perltidy on files as you edit them. Can have different tidy configs for loading and saving.
In your config file:
use Vim::Helper qw/ TidyFilter /; TidyFilter { save_rc => 'PATH/TO/perltidy.rc', load_rc => 'PATH/TO/perltidy.rc', };
Read perl content from stdin, tidy it, return to stdout. Uses your load_rc.
Read perl content from stdin, tidy it, return to stdout. Uses your save_rc.
None
Chad Granum exodist7@gmail.com
Copyright (C) 2012 Chad Granum
Vim-Helper is free software; Standard perl licence.
Vim-Helper is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
To install Vim::Helper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Vim::Helper
CPAN shell
perl -MCPAN -e shell install Vim::Helper
For more information on module installation, please visit the detailed CPAN module installation guide.