[lug] vi editor

John Starkey jstarkey at advancecreations.com
Sat Oct 28 07:04:07 MDT 2000


The vin HOWTO says "!" is the "filter through command" in it's explanation
of operators. Not sure what he means, is he saying the same thing you are,
just not as gracefully? :} Or is this another use for it?


On Fri, 27 Oct 2000, Sean Reifschneider wrote:

> On Fri, Oct 27, 2000 at 12:34:22PM -0600, John Starkey wrote:
> >d/ 			got that part. 
> ><space><space> 		on first account it's describing my last 12
> >			months; I see it's also cutting a whole line. Does
> >			this mean cut from <space> to <space>
> >{!}			filter everything in the paragraph?
> >fmt			a line justifier??
> 
> It's actually more like:
> 
> d                 - delete until...
> /<space><space>   - search for two spaces
> {!}               - run a shell command on the current paragraph
> fmt               - that shell command is named "fmt".
> 
> Try replacing the "fmt" with:
> 
> 	fmt -1 | sort | uniq -c | sort -rn
> 
> or
> 
> 	wc -c
> 
> The former gives you a list of the words in the paragraph and their
> frequency used (roughly), and the latter counts the words.
> 
> Sean
> 





More information about the LUG mailing list