[olug] VIM help

Sam Deel sdeel at home.com
Mon Feb 19 19:32:40 UTC 2001


Rado, I am reading from a book and not in vi at the moment.  Global
commands start with :g so the idea would be 

:g/pattern/d

If the first suggestion did not work this should.

--sad

Rado Bonk wrote:
> 
> Hello Linux users,
> I am working with big ASCII files. There is just one column of data in
> each file. I need to delete lines with the specific string. If I use in
> VIM:
> :%s/string// or :%s/^string//
> 
> the string is deletd but the line (empty) is still in the file. I need to
> delete the entire line. Something like "\n" would help. I use VIM for
> ASCII file editing.
> Sincerely,
>                 Rado
> 
> Rado Bonk
> Geography and Geology
> UNO, Omaha, NE 68182-0199
> rado at cosmos.unomaha.edu
> http://rbonk.host.sk
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: olug-unsubscribe at bstc.net
> For additional commands, e-mail: olug-help at bstc.net

---------------------------------------------------------------------
To unsubscribe, e-mail: olug-unsubscribe at bstc.net
For additional commands, e-mail: olug-help at bstc.net



More information about the OLUG mailing list