3 ms·
set clipboard+=unnamedplus imap <C-V> <C-R>+ vmap <C-C> y Most probably you want this as well: cmap <C-V> <C-R>+
by daliusd 7y ago
set clipboard+=unnamedplus
imap <C-V> <C-R>+
vmap <C-C> y
Most probably you want this as well:
cmap <C-V> <C-R>+
- majewsky 7y ago> set clipboard+=unnamedplus TIL. This goes into my vimrc right now.
- emidln 7y agoWorth noting that this is Ctrl+Shift+v and Ctrl+Shift+c. The C-v (Ctrl+lowercase v) is important for literal character insertion. (Insert a tab, escape, return, etc.)
- narimiran 7y ago> The C-v (Ctrl+lowercase v) is important for literal character insertion. You can remap it to <C-l> (L = literal), and then use <C-c> and <C-v> without shift: inoremap <C-l> <C-v> imap <C-v> <C-r>+ cmap <C-v> <C-r>+ xmap <C-c> "+y
- deleted 7y ago[deleted]