Max Dyckhoff wrote:
Prefixing the yank and put commands with registers works, but I personally 
prefer the following, which just sets the default register to be the system 
clipboard. From :help clipboard,

        When the "unnamed" string is included in the 'clipboard' option, the
        Unnamed register is the same as the "* register.  Thus you can yank to
        and paste the selection without prepending "* to commands.

So just put "set clipboard=unnamed" in your vimrc file, use y and p as normal, 
and watch them yank to and put from the system clipboard! Woo!

Max

[...]

I knew about that but I somehow forgot to mention it (though maybe I should have), because most of my puts and yanks are internal to Vim and I don't like clobbering the system clipboard in that case. "De gustibus et coloribus non est disputandum."


Best regards,
Tony.

Reply via email to