2014-01-27 09:26, John Little skrev:
> How about using //e to extend a visual selection?
>
> Say the current search is your multi-line pattern, then
>
> :let @a=""
> :g//exe "normal v//e\<cr>$\"Ay"
>
> appends the text of each match into register a, as whole lines (thanks to the $).
Why the backslash before <cr>? Will <cr> without it be replaced
by ^M in a doublequoted string? Where in the :help is that?
And if so why not a singlequoted string here anyway?
Just trying to learn.
/bpj
--
--
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.
Monday, January 27, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment