Welcome to WebmasterWorld Guest from 54.205.96.97

Forum Moderators: bakedjake

vim filters

pipe to php or perl?

   
9:00 am on Dec 1, 2006 (gmt 0)

5+ Year Member



I want to make a customizable external script to filter text blocks.

I know this is possible, but I'm not sure how to call the script (how much of the path to specify, or where to store the script), or how to get standard input into the file (in the case of php).

I'm using cygwin on windows and

So instead of the oft mentioned

:! sort

I want to do something like this:

:! filter_file arg1 arg2...

Can anyone lend a hand, or point me to a good resource on this? I've looked all over and only get the :! sort example everywhere.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month