| Summary: | RFE: place for per-host, per-user vimrc additions. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Anton Guda <atu> |
| Component: | vim | Assignee: | Karsten Hopp <karsten> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | ignatenko, karsten, moshima.web |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-24 12:14:08 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
I think that this is such a special case that it shouldn't be implemented for the whole distribution, it just complicates things. Feel free to change your /etc/vimrc as you wish, an update shouldn't overwrite your changes as those files are marked as %config(noreplace). |
Description of problem: Current vim installations uses solid /etc/vimrc for initialization. It makes more difficult to maintain per-host (or per - organization) configuration initialization changes. Proposition: Add to the end of /etc/vimrc such lines: " system local configs for rcfile in split( globpath("/etc/vimrc.d", "*.vim"), '\n' ) execute( 'source '.rcfile ) endfor " user local configs for rcfile in split( globpath("~/.vim/vimrc.d", "*.vim"), '\n' ) execute( 'source '.rcfile ) endfor And add descrption of /etc/vimrc.d/ to spec file: mkdir -p %{buildroot}/%{_sysconfdir}/vimrc.d ... %dir %{_sysconfdir}/vimrc.d Benefits: both system administrators and users can easy adjust vim behaviour. Cost: minimal - number of loaded plugin files is mush more then number of configs