Re: [Lug-Nuts] vi find

From: Brian E. Lavender (brian@brie.com)
Date: Tue Sep 21 1999 - 21:00:59 PDT


On Tue, Sep 21, 1999 at 08:37:36PM -0700, Brian E. Lavender wrote:
> On Tue, Sep 21, 1999 at 08:26:25PM -0700, Sean-Paul Rees wrote:
> Sean> per Brian's recommendation, i decided to dig up my vi cheatsheet and
> Sean> give more attention to get hooked up with this vi-addiction. how do i do
> Sean> a find for a string in vi?
>
> The easiest way is with a slash. Why in command mode hit "/"
> You probably won't see anything until you start typing.
> another way is with
> :%s/searchstring/

I was wrong with the
:%s/searchstring/

This actual stands for search and replace. It will actually
replace "searchstring" with nothing.

I should test these things before flying off and posting. :)

brian

-- 
Brian Lavender
http://www.brie.com/brian/



This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:07 PST