3 ms·
> And then there's Vim which, depending on how it was built for the respective distro, doesn't seem to accept any way to copy or paste text. I install GVim, si
by the_pwner224 6y ago
> And then there's Vim which, depending on how it was built for the respective distro, doesn't seem to accept any way to copy or paste text.
I install GVim, since it tends to be compiled with the most features enabled. You can still use the vim executable in a terminal and ignore the gvim one. Then it's just "+y / "+p to copy/paste, or add this to vimrc to map it to \y, \p:
noremap <Leader>y "+y
noremap <Leader>p "+p
- alpaca128 6y agoI didn't know about the gvim "trick", that's good to know. Generally I just set the clipboard as default register so yanks and pastes work smoothly with other programs in every situation: set clipboard=unnamedplus