I have this file
name ...
line1
name ...
line 2
name ...
line 3
etc
I want to delete lines after the "..." sequence ,and preserve the others: is possible?
The result will be
name ...
name ...
name ...
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityyou can do this with :g/regexp/+d
In your case this would (probably) be :g/\.\.\./+d
This (internally) marks all lines matching the regexp and then deletes the next line