packages: vim/vim-vimrc.patch - load /etc/vim/vimrc.local at the end of vim...

glen glen at pld-linux.org
Sun Jan 2 21:58:33 CET 2011


Author: glen                         Date: Sun Jan  2 20:58:33 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- load /etc/vim/vimrc.local at the end of vimrc if present

---- Files affected:
packages/vim:
   vim-vimrc.patch (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: packages/vim/vim-vimrc.patch
diff -u packages/vim/vim-vimrc.patch:1.11 packages/vim/vim-vimrc.patch:1.12
--- packages/vim/vim-vimrc.patch:1.11	Sun Jan  2 21:57:40 2011
+++ packages/vim/vim-vimrc.patch	Sun Jan  2 21:58:28 2011
@@ -28,7 +28,7 @@
    syntax on
    set hlsearch
  endif
-@@ -90,7 +93,10 @@
+@@ -90,7 +93,15 @@
  " Convenient command to see the difference between the current buffer and the
  " file it was loaded from, thus the changes you made.
  " Only define it when not defined already.
@@ -40,3 +40,8 @@
 +
 +" Use :help colorscheme for info
 +"set background=dark
++
++" Source a global configuration file if available
++if filereadable("/etc/vim/vimrc.local")
++  source /etc/vim/vimrc.local
++endif
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/vim/vim-vimrc.patch?r1=1.11&r2=1.12&f=u



More information about the pld-cvs-commit mailing list