On 2017-06-30, Dan Ritter <d...@randomstring.org> wrote: > > Imagine my surprise when the usual X selection and clipboard > techniques disappeared. > > Normal behavior: > > - X11 > - xterm or urxvt or gnome-terminal or whatever > - copy text by selecting with mouse button 1 > - move over to some other text input field and > paste with button 3 > > except, vim stopped allowing the paste. > > Here's the change: > > /usr/share/vim/vim80/defaults.vim > > now contains: > > " In many terminal emulators the mouse works just fine. By > enabling it you > " can position the cursor, Visually select and scroll with the > mouse. > if has('mouse') > set mouse=a > endif > > That's nice. It doesn't actually work for the X cut and paste > mechanism that I rely on, and it turns out that adding this > to my .vimrc: > > set mouse=off > > or > > set mouse="" > > does not work. > > Instead you need to go to that defaults file and comment out > the offending stanza. Use " as your beginning of line comment > character. > > -dsr- > >
Alternatively, hold down the shift key when selecting text. The text is then copied to the X11 clipboard as before. -- Liam