3 ms·
Are you aware of paste mode and clipboard/register sharing in Vim?
by tambourine_man 10y ago
Are you aware of paste mode and clipboard/register sharing in Vim?
- chj 10y agoDo you mean `:set paste` every time you want to copy something from clipboard?
- SevereOverfl0w 10y ago`:set clipboard=unnamedplus` let's you use the Xwindow clipboard for `p` to paste. I also believe Neovim (and possibly normal vim, I'm not sure), automatically does `:set paste` and `:set nopaste` when you use the terminal paste.
- groovy2shoes 10y agoJust to add, I highly recommend people to look at `:help 'clipboard`. There are several options available, and one or another might be better depending on what you're expecting, and on which platform you're on (e.g., there are notes about using the clipboard on X vs. Windows).