Wednesday, April 7, 2010

Re: How to save output of '[I'

On Wed, April 7, 2010 9:06 am, Christian Brabandt wrote:
> :redir @a|norm [I|redir end

Sorry, this should've been
:redir @a|exe "norm [I"|redir end

The differrence is, that in the first version, everthing following the
I is seen as a normal mode command (and will probably give errors),
while the second version only executes the normal mode command [I,
followed by the ex-command :redir end.

regards,
Christian

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

To unsubscribe, reply using "remove me" as the subject.

No comments: