[vox-tech] vim question

Ted Deppner vox-tech@lists.lugod.org
Thu, 1 Aug 2002 19:56:08 -0700


On Thu, Aug 01, 2002 at 05:06:23PM -0700, Peter Jay Salzman wrote:
> his question was: can you do a search and replace on a buffer?

macro open a new window, paste the buffer, do a conventional S&R, yank the
buffer, close the window, and viola.  You could also ! out the line to sed
-e s/foo/bar/ for an in place.

Prolly too ugly.

Very interesting problem... and beyond my vim skills.  A friend of mine
once said (after I showed him a few things about vi he hadn't known) 
"no one can know everything vi can do".  And later came vim.

-- 
Ted Deppner
http://www.psyber.com/~ted/