Note the diff in the default at least on the Help:

Yakkety:
'mouse'                 string  (default "", "a" for GUI, MS-DOS and Win32)
                        global
                        {not in Vi}

Zesty:
'mouse'                 string  (default "", "a" for GUI, MS-DOS and Win32,
                                                 set to "a" in defaults.vim)
                        global
                        {not in Vi}

That matches:
https://github.com/vim/vim/blob/master/runtime/defaults.vim


>From the NEWS file on the last version:
vim (2:8.0.0022-1) unstable; urgency=medium                                     
    
                                                                                
    
  Vim now ships with a defaults.vim file which, when the user has no vimrc,     
    
  enables some options that have historically been disabled by default.  This   
    
  is described in more detail at ":help defaults.vim".                          
    
                                                                                
    
  Since defaults.vim is loaded when the user's vimrc would typically be         
    
  loaded, it will override any settings in /etc/vim/vimrc(.local).  In order    
    
  to disable the loading of defaults.vim, add                                   
    
                                                                                
    
    let g:skip_defaults_vim = 1                                                 
    
                                                                                
    
  to /etc/vim/vimrc(.local).                                                    
    
                                                                                
    
 -- James McCoy <james...@debian.org>  Tue, 04 Oct 2016 20:28:02 -0400

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to vim in Ubuntu.
https://bugs.launchpad.net/bugs/1661691

Title:
  TERM=xterm enables mouse mode in vi, breaks pasting with middle mouse

Status in vim package in Ubuntu:
  Confirmed
Status in vim source package in Zesty:
  Confirmed

Bug description:
  I quite often have the following work flow:

  a.) lxc launch ubuntu-daily:zesty z1
  b.) lxc exec z1 /bin/bash
  c.) % vi foo.txt
  d.) paste some thing from my X buffer (hit middle mouse button).

  Somewhere between yakkety (2:7.4.1829-1ubuntu2.1) and zesty
  (2:8.0.0095-1ubuntu2) this behavior changed.

  Previously this all worked fine.

  Now, in zesty, however an attempt to paste results in a vi error message:
   E353: Nothing in register "

  to fix this, you can first disable the mouse 'a' [1]

   : set mouse-=a

  
  I'm not sure what is enabling this, because /usr/share/vim/vimrc has the line
  set mouse=a commented out.

  --
  [1] 
http://www.varesano.net/blog/fabio/disable%20vim%20automatic%20visual%20mode%20using%20mouse

  ProblemType: Bug
  DistroRelease: Ubuntu 17.04
  Package: vim-nox 2:8.0.0095-1ubuntu2
  ProcVersionSignature: Ubuntu 4.9.0-12.13-generic 4.9.2
  Uname: Linux 4.9.0-12-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
  ApportVersion: 2.20.4-0ubuntu1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Fri Feb  3 12:14:20 2017
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2015-07-23 (561 days ago)
  InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150722.1)
  SourcePackage: vim
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/1661691/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to