up vote 1 down vote favorite
1
share [g+] share [fb]

I would like to do get the output of an ex command placed in a register. I know there is the :redir command, but that requires three commands to accomplish the task. Is there a native way to do it in one command?

link|improve this question

50% accept rate
feedback

1 Answer

I doubt you'll get much shorter than...

:redir @a | echo "This will end up in register a." | redir END

...without writing a function.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.