Bug 1082655

Summary: vim: please, provide a /etc/vim.d
Product: [openSUSE] openSUSE Tumbleweed Reporter: Luiz Angelo Daros de Luca <luizluca>
Component: BasesystemAssignee: Ismail Dönmez <ismail>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None CC: michael.brunner
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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)
endfor
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.