how to save command info to a file or register

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to save command info to a file or register

Sand Glass
:version
I will see some info on screen, but how can I save them, or copy them to clipboard or register. By the way, I use windows system.
I kown 'q:' can view the command histroy, 'q/' can view the search history. Is there some simular way?

:ruby 1
I will see some red error info on screen. How can save them?

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: how to save command info to a file or register

Christian Brabandt
Hi Sand!

On Mi, 19 Apr 2017, Sand Glass wrote:

> :version
> I will see some info on screen, but how can I save them, or copy them to clipboard or register. By the way, I use windows system.
> I kown 'q:' can view the command histroy, 'q/' can view the search history. Is there some simular way?
>
> :ruby 1
> I will see some red error info on screen. How can save them?

:h redir
:h execute()

Depending on your version, execute() may not be available.

Best,
Christian
--
Wie man sein Kind nicht nennen sollte:
  B. Schissen

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.