Wednesday, September 14, 2011

Delete whole line with substitute

Hello to everyone.

I got one silly question: I want to delete all lines matching pattern completely, but I :%s/.*{PATTERN}.*// delete only text till the end of line. Using :s/^$// after doesnt't work also.
Is where a simple way to do such substitution?

--
Best regards
Golubev Mikhail

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: