Re: Running part of a Vim file as an Awk program in the shell

2009-07-31 Thread dacresni
{range}![!]{filter} [!][arg] is whats in the manual, so :first_line, last_line !awk is the command you want On Jul 31, 8:09 am, Birdie Edwards wrote: > I have a single Vim file that contains 5 awk scripts.  Is there a way > of running one of those scripts from inside Vim? > > If one wants to ru

Re: Running part of a Vim file as an Awk program in the shell

2009-07-31 Thread dacresni
try help filter On Jul 31, 8:09 am, Birdie Edwards wrote: > I have a single Vim file that contains 5 awk scripts.  Is there a way > of running one of those scripts from inside Vim? > > If one wants to run an entire file as an awk script from inside Vim, > one enters :! ./% > > If one wants to

Running part of a Vim file as an Awk program in the shell

2009-07-31 Thread Birdie Edwards
I have a single Vim file that contains 5 awk scripts. Is there a way of running one of those scripts from inside Vim? If one wants to run an entire file as an awk script from inside Vim, one enters :! ./% If one wants to filter a portion of a file through a unix command such as sort, one enters