Bug#842833: vim-gtk3: Default vim does not allow pasting with mouse as root

James McCoy jamessan at debian.org
Wed Nov 2 18:06:37 UTC 2016

On Wed, Nov 02, 2016 at 06:43:07PM +0100, Helge Kreutzmann wrote:
> Hello James,
> On Tue, Nov 01, 2016 at 07:32:53PM -0400, James McCoy wrote:
> > Please see ":help defaults.vim" for more information, including how to
> > disable loading the file in the system vimrc.
> Back to the bug:
> Ok, now I used nano to create a .vimrc with the following content as
> stated in the help file reference you gave me:
> unlet! skip_defaults_vim
> source $VIMRUNTIME/defaults.vim
> But nothing changes, i.e. I still cannot paste into the buffer.

It seems the help section was misunderstood.

  If Vim is started normally and no user vimrc file is found, the
  $VIMRUNTIME/defaults.vim script is loaded.

So, the mere presence of a user vimrc will disable loading defaults.vim.

  If you create your own .vimrc, it is recommended to add this line
  somewhere near the top:
          unlet! skip_defaults_vim
          source $VIMRUNTIME/defaults.vim

This is describing what to do if you _want_ defaults.vim to be loaded,
even when you have your own vimrc.  In your case, you _don't_ want
defaults.vim loaded, so this isn't useful.

  If you use a system-wide vimrc and don't want defaults.vim to change
  settings, set the "skip_defaults_vim" variable.

This is what I was referring to in my last email.  You can simply add
"let skip_defaults_vim = 1" to /etc/vim/vimrc.local and the file will
never be loaded, for anyone, unless they explicitly unlet the variable
and load the file themselves.

GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB

More information about the pkg-vim-maintainers mailing list