VIm Question ...
James McDonald
james at jamesmcdonald.id.au
Thu Oct 18 05:06:57 PDT 2007
C M Reinehr wrote:
> Ben,
>
> On Wednesday 17 October 2007 09:57, Ben Duncan wrote:
>
>> I need to know the command to delete lines that DO NOT contain a string.
>>
> :v/works_4/d
>
> if you want to delete lines with works_4 appears anywhere in the line, or
>
> :v/^works_4/d
>
> If you want to delete lines only when works_4 only appears at the beginning of
> the line.
>
For me this deletes one occurance at a time? How do I make it global?
More information about the Linux-users
mailing list