Tuesday, November 22, 2011

How to find/delete block between matching lines?

Dear Vimers,

I have a large file with structured text.

I want to find blocks of text from a line matching my first regex up to a line matching my second regex.
I'd like to be able to include or exclude the matching lines
and I'd love to be able to execute a deletion or other command on such the found blocks.

How do I accomplish this?

Help will be much appreciated.
Kind regards!
Asis

--
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: