#6 Source /etc/vimrc.local if it exists
Merged 4 years ago by zdohnal. Opened 4 years ago by lkundrak.
rpms/ lkundrak/vim lr/vimrc.local  into  master

file modified
+4 -1
@@ -21,7 +21,7 @@ 

  URL:     http://www.vim.org/

  Name: vim

  Version: %{baseversion}.%{patchlevel}

- Release: 1%{?dist}

+ Release: 2%{?dist}

  License: Vim and MIT

  Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}-%{patchlevel}.tar.bz2

  Source1: vim.sh
@@ -783,6 +783,9 @@ 

  %{_datadir}/icons/locolor/*/apps/*

  

  %changelog

+ * Mon Mar 16 2020 Lubomir Rintel <lkundrak@v3.sk> - 2:8.2.390-2

+ - source /etc/vimrc.local if it exists

+ 

  * Mon Mar 16 2020 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.2.390-1

  - patchlevel 390

  

file modified
+5
@@ -121,3 +121,8 @@ 

  

  " Don't wake up system with blinking cursor:

  let &guicursor = &guicursor . ",a:blinkon0"

+ 

+ " Source a global configuration file if available

+ if filereadable("/etc/vimrc.local")

+   source /etc/vimrc.local

+ endif

There seems to be no good way to extend distro-provided vimrc. If the
user modifies /etc/vimrc, then RPM will keep it intact from then on,
with subsequent distribution updates going into a .rpmnew file. Sad.

On Debian the user is supposed to put the local overrides into a
vimrc.local file next to the main vimrc. That is pretty neat -- the
local configuration is separated from the system one and can be updated
independently. Let's do the same thing.

Hi,

it seems okay, thank you for the patch!

Pull-Request has been merged by zdohnal

4 years ago