[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: help in vi

On Tue, 16 Jan 2001, Saravanan Subbiah wrote:

> Hi,
> how do I delete a set of lines which matches some regular expression in
> vi ???
> :%d/reg.expression/
> doesn't seem to work !
Use %s (substitute) instead of %d

:%s/sub *Func1//g

U can use gc instead of just g to prompt b4 substitute.