Wayne Blaszczyk wrote:
Hi All,

After upgrading to LFS 8.0, I've found that the vim's mouse copy and
paste stopped working as expected. What is happening is the mouse
option is being set to 'a' despite /etc/vimrc having mouse=r. It turns
out that /usr/share/vim/vim80/defaults.vim is overwriting /etc/vimrc
settings if the user does not have a local .vimrc file. See
https://bugzilla.redhat.com/show_bug.cgi?id=1401410

The work around is to add the following line to /etc/vimrc: let
skip_defaults_vim=1

The setting you are looking for is 'set mouse=r'. I have had a problem where that wasn't sufficient when added to /etc/vimrc, but always has worked when it is in ~/.vimrc.

The real culprit is /usr/share/vim/vim80/defaults.vim

" In many terminal emulators the mouse works fine.  By enabling it you
" can position the cursor, Visually select and scroll with the mouse.
if has('mouse')
  set mouse=a
endif

The latest LFS has set mouse=r in the example /etc/vimrc.

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to