How to copy the ex command to the clipboard or paste it to the buffer?
Using gvim on Windows.
How to copy the ex command to the clipboard or paste it to the buffer?
Using gvim on Windows.
The windows clipboard can be accessed through the buffer +
. So pasting your clipboard as an ex-command can be done with <C-R>+
. If you want to copy your ex-commands to the clipboard, you need to show the command history (q:
) and copy it into the clipboard buffer ("+yy
).
If you source mswin.vim in your setup it will map the default Windows copy/paste keys to use the clipboard. If you want to do it yourself please see Soulmerge's answer.
Enter command history with (from normal mode)
q:
Then select and copy(yank) commands you need with
"*y