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

Helge Kreutzmann debian at helgefjell.de
Wed Nov 2 19:32:36 UTC 2016


Hello James,
On Wed, Nov 02, 2016 at 02:06:37PM -0400, James McCoy wrote:
> On Wed, Nov 02, 2016 at 06:43:07PM +0100, Helge Kreutzmann 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.

I see, but this is quite hidden in the help text. (It was aeons ago I
customized my own vimrc). This works, thanks. Probably this could be
stated more explicitly in the text, given its importance.

Still, please consider the use case of pasting with a mouse a common
one which should work out of the box, especially for such a low level
tool like vim (at least if called by the name of vi). As root user,
having to work on some configuration file this is essential, and nano
is really no replacement. And when in dire need to fix an issue one
probably does not want to understand the details of disabling some
"fancy" configuration.

Greetings

           Helge


-- 
      Dr. Helge Kreutzmann                     debian at helgefjell.de
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20161102/ef16b618/attachment.sig>


More information about the pkg-vim-maintainers mailing list