[svlug] Two stupid FAQ questions about VI...

Seth David Schoen schoen at uclink4.berkeley.edu
Sun Nov 29 22:32:50 PST 1998


Seth David Schoen writes:

> If you don't want to rely on having saved the buffer, you could
> 
> :1,$|wc -w
> 
> (which replaces the buffer with the number of words in it).
> 
> Then immediately
> 
> u
> 
> to get the buffer back!

Oops.  The ex command cited above should actually be

:1,$!wc -w

-- 
   Seth David Schoen L&S '01 (undeclared) / schoen at uclink4.berkeley.edu
He said, "This is what the king who will reign over you will do."  And they
said, "Nay, but we will have a king over us, that we also may be like all the
nations." (1 Sam 8)  http://ishmael.geecs.org/~sigma/   http://www.loyalty.org/

--
echo "unsubscribe svlug" | mail majordomo at svlug.org
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe
see http://www.svlug.org/mdstuff/lists.shtml for posting guidelines.



More information about the svlug mailing list