Georg Dahn wrote:
Hi!

 > To copy the whole
":version" output to the clipboard, use:
    :set nomore
    :redir @*
    :version
    :redir END
    :set more
    :let @+ = @*
[the last line above is not necessary on Windows]. You can trim the result after pasting it into an email.)

Many thanks for this, I have wondering how others do this for a while!

Best wishes,
Georg

My pleasure. It is an application of
        :help :redir
        :help x11-selection   " x11 systems only; to the end of the helpfile
        :help clipboard
        :help gui-clipboard   " Windows only
        :help registers
        :help quote~          " and scroll up to read the part of ยง7 above it
        :help :let-@
        :help expr-register

where whatever follows a double-quote is a comment applying to the command left of it.

On X11 systems it is not possible to redirect directly to register + which, on these systems, is what other programs use to paste; hence the "fancy footwork" redirecting to @* then setting @+ equal to @*

On Windows, @+ and @* are synonymous; both mean the system clipboard.


Best regards,
Tony.

Reply via email to