Bug 1082655 - vim: please, provide a /etc/vim.d
vim: please, provide a /etc/vim.d
Status: NEW
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem
Other Other
: P5 - None : Enhancement (vote)
: ---
Assigned To: Ismail Dönmez
E-mail List
Depends on:
  Show dependency treegraph
Reported: 2018-02-23 21:26 UTC by Luiz Angelo Daros de Luca
Modified: 2020-04-23 13:17 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Luiz Angelo Daros de Luca 2018-02-23 21:26:20 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)
Comment 1 Michael Brunner 2020-04-23 13:17:32 UTC
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.