Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How do I create a simple, perl-based text filter for Vim

by holli (Abbot)
on Feb 13, 2005 at 18:10 UTC ( [id://430604] : note . print w/replies, xml ) Need Help??


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.