update_perl_line_directives : automatically add/update line directives in perl embedded in vim scripts
script karma |
Rating 0/0,
Downloaded by 1169 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Britton Kerin |
|
script type |
ftplugin |
|
description |
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:
perl <<EOF
will automagically become
perl <<EOF
# 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. |
|
install details |
Its a standard vimball so all you need to do is:
vim update_perl_line_directives.vba
:so % |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.148.185.226
|