The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Vim::Helper::TidyFilter - Run perltidy on the buffer when files are loaded or saved.

DESCRIPTION

Used to run perltidy on files as you edit them. Can have different tidy configs for loading and saving.

SYNOPSIS

In your config file:

    use Vim::Helper qw/
        TidyFilter
    /;

    TidyFilter {
        save_rc => 'PATH/TO/perltidy.rc',
        load_rc => 'PATH/TO/perltidy.rc',
    };

ARGS

tidy_load

Read perl content from stdin, tidy it, return to stdout. Uses your load_rc.

tidy_save

Read perl content from stdin, tidy it, return to stdout. Uses your save_rc.

OPTS

None

CONFIGURATION OPTIONS

save_rc => 'PATH/TO/perltidy.rc'
load_rc => 'PATH/TO/perltidy.rc'

AUTHORS

Chad Granum exodist7@gmail.com

COPYRIGHT

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.