Sunday, January 26, 2014

How to Move/Copy multi-line search matches?

Hi,

I have a multi-line search pattern (\cTable\s*\d\+:\_.\{-}\d\+\s*\n\ze.\{-}\%>75c.*) which matches multiple text segments in a file. 
E.g. : One of the matched text segments - 



I would like to know how all the matched segments can be moved or copied via a single operation. 

I am looking for something similar to 1) :g/<pattern>/t$ 2) :g/<pattern>/m$ 3) :g/<pattern>/y A, except that it should work for the entire multi-line text segment and not just the first line.

--
Regards,
Sibin

--
--
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
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: