Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #211900

Upgrade from Debian Stretch to Buster moves files from /usr/share/vim/vimfiles effectively disabling them

From Linux-Fan <Ma_Sys.ma@web.de>
Newsgroups linux.debian.user
Subject Upgrade from Debian Stretch to Buster moves files from /usr/share/vim/vimfiles effectively disabling them
Date 2019-07-30 00:10 +0200
Message-ID <ypm09-48D-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hello,

I have just successfully upgraded 12 physical machines to the new Debian
release (Debian Buster) and can tell that the upgrade runs very smoothly.
Very nice job by all contributors, thank you very much!

I have noticed, that files previously existing under /usr/share/vim/vimfiles
have been (automatically?) moved to /etc/vim which in my case effectively
disabled them, because when I type `:set runtimepath` in VIM, I get the
following:

	runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim81,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after

To me, this indicates that `/usr/share/vim/vimfiles` is considered for
scripts, but `/etc/vim` is not.

My questions are as follows:

 * Why has this happened?

   From a technical point of view, the rename seems to be triggered by
   vim-common's `postinst` script, which has a line:

	dpkg-maintscript-helper symlink_to_dir /usr/share/vim/vimfiles /etc/vim 2:8.1.0639-2\~ vim-common -- "$@"

   While it is not exactly clear to me what it does, it looks as if
   for some reasons the rename from /usr/share/vim/vimfiles to /etc/vim is
   programmed by this. The command has a comment:

	# Automatically added by dh_installdeb/12.1.1

   which leaves me unclear to why this is actually there?

 * Am I right to assume that /usr/share/vim/vimfiles should for some reason
   no longer be used (why else the rename)? If that is the case: What is an
   alternative outside the `/etc` region? I would like to provide a custom
   syntax file by means of a package and up to now, I am successfully writing
   it to `/usr/share/vim/vimfiles`. In fact, updating my package without
   doing any changes caused the files to be rewritten under
   `/usr/share/vim/vimfiles` which effectively re-enabled them...

If anyone knows details about this, some explanation would be very much
appreciated :)

In case it is needed/useful or part of the problem, I have attached my
`vimrc`.

Thanks in advance
Linux-Fan

Back to linux.debian.user | Previous | Next | Find similar | Unroll thread


Thread

Upgrade from Debian Stretch to Buster moves files from          /usr/share/vim/vimfiles effectively disabling them Linux-Fan <Ma_Sys.ma@web.de> - 2019-07-30 00:10 +0200

csiph-web