http://qs1969.pair.com?node_id=430604


in reply to How do I create a simple, perl-based text filter for Vim

I think that is because a perl script is no binary-executable, maybe the same reason why you canīt say #!/some/script.pl in a shebang-line. (I read a node that addresses this (by merlyn) somewhere but i cannot find it.)

If that is really the case i would !perl script.pl or create a c-wrapper that calls the script.

Update:
martinvi is a big vi(m)? expert. He doesnīt post very often, but if you /msg him and point to this thread i am sure he can help.

holli, /regexed monk/

Replies are listed 'Best First'.
Re^2: How do I create a simple, perl-based text filter for Vim
by neniro (Priest) on Feb 14, 2005 at 10:46 UTC
    I've tried, based on your suggestion, :%!perl script.pl and it works fine with vim6.3 on WindowsXP. Calling it without involving the perl.exe doesn't work.