Friday, June 15, 2012

Re: problem: redirection of global print to register

On Friday, June 15, 2012 5:00:27 AM UTC-5, Nick Shyrokovskiy wrote:
> On Friday, June 15, 2012 11:23:58 AM UTC+3, Christian Brabandt wrote:
>
> > To prevent this, you can use :exe if you want to put this in one
> > single line, e.g.
> > :redir @c|exe "g/a./"|redir END
>
> I've learned a better way to make it one line from help:
> :redir @c | g/a./^@redir END
> where ^@ is one character, it's newline and it's inserted with C-V C-J

How on Earth is that better? This is one of the most common uses of the :exe command, and much easier to see what's going on than needing to puzzle out what the unprintable character is doing on the command-line.

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