2 ms·
> My main complaints about vim/emacs in the past was at the sheer complexity of getting something that should not even be a concern (clipboard integration) work
by tasuki 2y ago
> My main complaints about vim/emacs in the past was at the sheer complexity of getting something that should not even be a concern (clipboard integration) working properly
What problems have you encountered? I have the following shortcuts in my .vimrc:
vnoremap <Leader>y "*y
noremap <Leader>p "*p
vnoremap <Leader>c "+y
noremap <Leader>v "+p
Space + y/p is the copying/pasting from/to the "primary selection" (the mouse middle click). Space + c/v is copying/pasting from/to the regular ctrl+c/ctrl+v clipboard.
This... just works for me?
- urxvtcd 2y agoMy solution is to have this snippet in my vimrc. Don't ask me why this works. It's been years, and I had no issues with it. " System-agnostic setting making the unnamed clipboard register act like " clipboard in any other editor. Copy with y commands, and paste with p or P. if has('unnamedplus') set clipboard=unnamedplus,unnamed else set clipboard+=unnamed endif Beside this, there is also the issue of setting paste when pasting in insert mode.