Bugzilla – Bug 1082655
vim: please, provide a /etc/vim.d
Last modified: 2020-04-23 13:17:32 UTC
As many other sw do, vim could use a config directory. It is just a matter of including those lines in /etc/vimrc for rcfile in split(globpath("/etc/vim.d/", "*.vim"), '\n') execute('source '.rcfile) endfor
Same problem here. I want do deliver a system wide configuration which will not be altered by system updates. The man page of vim says that the system wide vim initialization is on /usr/share/vim/vimrc but a echo "set nu" >> /usr/share/vim/vimrc doesn't change anything. The only file I found is on /etc/vimrc but it looks like that this file is delivered by suse and I am not sure what happens with changes in this file when it comes to system updates. In my opinion a clean solution should result in a configuration file which belongs to the distributor, one file which describes system wide settings and the files in the users home directory.