Thursday, May 28, 2015

Replicate TextPad feature (copy marked lines)

Hi All,

I use vim as much as possible, but today I saw a coworker do something interesting with TextPad.

He would use find with a string or regular expression. Then he can mark all matching lines.
He can repeat the process with several strings.

After that he would copy all the marked lines and paste to another window.

In vim we could do this using the g command by providing multiple expressions separated by \|

My question is if there would exist a way (using plug-in would be fine) to do this sequentially in vim?

Regards,
Jorge

--
--
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/d/optout.

No comments: