On 14/03/2017 09:04, 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

Regards,
Wayne.
Many thanks for that, Wayne! IIUC, your workaround wipes out all the defaults from default.vim. Can't some of those be useful? Actually, IIUC again, having .vimrc in $HOME wipes them out too. OK (should have read that first), it is all explained in the bug report you mention. I think this needs an explanation on the vim page. I'd be inclined to add "let skip_defaults_vim=1" in the proposed /etc/vimrc, with a comment in the text explaining that it prevents /usr/share/vim/vim80/defaults.vim from being used, and enjoining to look at that file and copy the lines that the user finds useful to /etc/vimrc.

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

Reply via email to