4 ms·
> On Debian it changes to visual mode. If you put this in your .vimrc, it should allow you to paste from the system clipboard by pressing space-p: let g:m
by JoshMnem 9y ago
> On Debian it changes to visual mode.
If you put this in your .vimrc, it should allow you to paste from the system clipboard by pressing space-p:
let g:mapleader = "\<Space>"
nmap <leader>p "*p
vmap <leader>p "*p
(Or use `"*p` or `"+p`, not including the backticks.)
- u801e 9y agoThat will only work if the xterm_clipboard feature is enabled at compile time with vim. Edit: s/clipbaord/clipboard/
- JoshMnem 9y agoOh, I'm not sure how it works on regular Debian. I'm using Ubuntu and it works out of the box here. I'm using neovim now, but it works with regular vim from the package manager too.
- u801e 9y agoYou can try running: :version within vim to see what compile time features are enabled or disabled. If the list says +xterm_clipboard, then that feature is enabled. In my experience, terminal vim doesn't have that feature enabled, but gvim does.