update_perl_line_directives : automatically add/update line directives in perl embedded in vim scripts
| script karma
Downloaded by 539
Comments, bugs, improvements
|WARNING: if your vim links to (or dlopen()'s) a libperl earlier than 5.12, perl may end up lying to you about the line number by one (or maybe more, but one is what I've seen).
This script eases development of vim scripts that use embedded perl code by automatically adding or updating line directives to perl code blocks. So for example:
will automagically become
# line 42 /some/file.vim
when you save /some/file.vim. You can use other valid here-document terminators, not just 'EOF'.
Now your error messages that come from perl will have correct file names and line numbers.
See also http://www.vim.org/scripts/script.php?script_id=3411 if you want to automatically catch perl syntax errors when vim scripts are saved.
|Its a standard vimball so all you need to do is:
Rating scripts is only available on the
script versions (upload new version)
Click on the package to download.
ip used for rating: 220.127.116.11