sponsor Vim development Vim logo Vim Book Ad

perl_synwrite.vim : checks Perl syntax before allowing file write

 script karma  Rating 94/33, Downloaded by 3509  Comments, bugs, improvements  Vim wiki

created by
Ricardo Signes
script type
This plugin causes write attempts to fail if the contents of the buffer produce an error when run through "perl -c"

The plugin uses can use autocommands for the BufWriteCmd and FileWriteCmd events, but by default only provides a :Write command to check-then-write.
install details
Put this file in one of the locations described in :help ftplugin such as "~/.vim/after/ftplugin";  if you want autocommands, which are quirky, define perl_synwrite_au = 1

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
perl_synwrite.vim 5 2006-01-16 6.0 Ricardo Signes work with shebang of "#!perl"
better internals
perl_synwrite.vim 4 2006-01-04 6.0 Ricardo Signes respect tainting, include a bit more information
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.