Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 ( #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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://430604]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2023-01-29 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?