I have some settings in my debian (in /etc/vim/vimrc.local
), which are overwritten by some plugins. Exactly which ones, at the moment is it hard to say, however I find it quite an annoying one.
I found the problem after some of my settings (in /etc/vim/vimrc.local
) simply did not work. I have made a debugging with the command vim -V9logfile.log testfile
and I have found this:
finished sourcing /usr/share/vim/vim90/debian.vim
finished sourcing /usr/share/vim/vim90/colors/lists/default.vim
finished sourcing /usr/share/vim/vim90/syntax/syncolor.vim
finished sourcing /usr/share/vim/vim90/syntax/synload.vim
finished sourcing /usr/share/vim/vim90/filetype.vim
finished sourcing /usr/share/vim/vim90/autoload/dist/script.vim
finished sourcing /usr/share/vim/vim90/scripts.vim
finished sourcing /usr/share/vim/vim90/syntax/syntax.vim
finished sourcing /etc/vim/vimrc.local
finished sourcing /etc/vim/vimrc
finished sourcing /usr/share/vim/vim90/filetype.vim
finished sourcing /usr/share/vim/vim90/ftplugin.vim
finished sourcing /usr/share/vim/vim90/indent.vim
finished sourcing /usr/share/vim/vim90/syntax/nosyntax.vim
finished sourcing /usr/share/vim/vim90/syntax/syncolor.vim
finished sourcing /usr/share/vim/vim90/syntax/synload.vim
finished sourcing /usr/share/vim/vim90/syntax/syntax.vim
finished sourcing $VIMRUNTIME/defaults.vim
finished sourcing /usr/share/vim/vim90/plugin/getscriptPlugin.vim
finished sourcing /usr/share/vim/vim90/plugin/gzip.vim
finished sourcing /usr/share/vim/vim90/plugin/logiPat.vim
finished sourcing /usr/share/vim/vim90/plugin/manpager.vim
finished sourcing /usr/share/vim/vim90/plugin/matchparen.vim
finished sourcing /usr/share/vim/vim90/plugin/netrwPlugin.vim
finished sourcing /usr/share/vim/vim90/plugin/rrhelper.vim
finished sourcing /usr/share/vim/vim90/plugin/spellfile.vim
finished sourcing /usr/share/vim/vim90/plugin/tarPlugin.vim
finished sourcing /usr/share/vim/vim90/plugin/tohtml.vim
finished sourcing /usr/share/vim/vim90/plugin/vimballPlugin.vim
finished sourcing /usr/share/vim/vim90/plugin/zipPlugin.vim
finished sourcing /usr/share/vim/vim90/scripts.vim
finished sourcing /usr/share/vim/vim90/ftplugin/vim.vim
finished sourcing /usr/share/vim/vim90/indent/vim.vim
Fine. So, I have a lot of sources read in before and also after my vimrc.local
, which is the ordinary place in debian for system-wide vi settings. Somewhere there, my settings are overwritten and it really annoys me. I believe, what I set up manually, should be stronger settings as some distro defaults.
Maybe we have a "battle of worlds" here, i.e. debian has some ideas how configs should look and vim has contradicting ones? Or it might be only some bug? Anyways, what should I do to let these things do what I want?
P.S.: The settings are:
set mouse=
set ttymouse=
But please do not make this the focus of the answer. I do not find first this problem, and mysteriously unworking config directives are the worst what a command line guy can annoy. Question is to get a clear picture, what is the root of the cause in the general case and how to solve it. If debian is maybe too orthodox then I will find a way to enforce into what I want from him.)
:verbose set opt?
and:verbose setlocal opt?
to find out where opt was last set. And, unless you need system-wide configuration, try a user vimrc (e.g.,~/.vim/vimrc
). Unfortunately overly general questions are hard to answer, so I think it would be better to focus in on what you want to solve./usr/share/vim/vim90/defaults.vim
! Which is after my vimrc.local... the problem was very simple,set mouse=
worked well directly but not in my/etc/vim/vimrc.local
. I... just felt that something overwrites it. And now I know, who!!defaults.vim
… and of not doing their config where it belongs: in their$HOME
.$HOME
is where you should do that stuff.