Debian Stretch 9 issue with vim: copy and paste

20 06 2017

In Debian Stetch 9 there is a new behaviour in vim, the copy and paste with the mouse is unusual and don’t work as the previous versions did. For fix it:

Edit the file (or create it): /etc/vim/vimrc.local with the following content:
runtime! defaults.vim
let g:skip_defaults_vim = 1
set mouse=

More info: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837761#76

Old solution:

In the file /usr/share/vim/vim80/defaults.vim comment the lines:

" if has('mouse')
" set mouse=a
" endif

Advertisements