Bug 1466938 - Possibility for site-specific /etc/vimrc.local
Possibility for site-specific /etc/vimrc.local
Status: NEW
Product: Fedora
Classification: Fedora
Component: vim (Show other bugs)
Unspecified Linux
unspecified Severity low
: ---
: ---
Assigned To: Karsten Hopp
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-06-30 15:54 EDT by David Goerger
Modified: 2017-06-30 15:54 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Goerger 2017-06-30 15:54:49 EDT

Currently on my systems, I ship company-specific vimrc settings in /etc/vimrc.local (modelled on /etc/lynx-site.cfg and /etc/Muttrc.local). I was wondering if it might be possible for the default Fedora /etc/vimrc to source a local site file, if present, similar to the following as a final directive in /etc/vimrc:

""" source site-specific config
if filereadable('/etc/vimrc.local')
  source /etc/vimrc.local

I've been using this in a custom /etc/vimrc[1] for several months (on my personal laptop), and find it works quite well. I'm not attached to any particular file name, just interested in the possibility to override system defaults after loading /etc/vimrc.


[1] https://github.com/dgoerger/dotfiles/blob/master/cookbooks/workstation/files/vimrc#L67

Note You need to log in before you can comment on or make changes to this bug.