packages: vim/vim-vimrc.patch - allow missing runtime/syntax/* dir

glen glen at pld-linux.org
Thu May 14 01:36:07 CEST 2009


Author: glen                         Date: Wed May 13 23:36:07 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- allow missing runtime/syntax/* dir

---- Files affected:
packages/vim:
   vim-vimrc.patch (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: packages/vim/vim-vimrc.patch
diff -u packages/vim/vim-vimrc.patch:1.9 packages/vim/vim-vimrc.patch:1.10
--- packages/vim/vim-vimrc.patch:1.9	Mon Aug 18 12:53:08 2008
+++ packages/vim/vim-vimrc.patch	Thu May 14 01:36:02 2009
@@ -1,6 +1,6 @@
---- vim72/runtime/vimrc_example.vim~	2008-07-02 23:11:53.000000000 +0300
-+++ vim72/runtime/vimrc_example.vim	2008-08-18 13:33:06.007243535 +0300
-@@ -42,9 +42,9 @@
+--- vim72/runtime/vimrc_example.vim	2008-08-18 13:33:06.007243535 +0300
++++ vim72/runtime/vimrc_example.vim	2009-05-14 02:04:43.261671071 +0300
+@@ -42,13 +42,13 @@
  inoremap <C-U> <C-G>u<C-U>
  
  " In many terminal emulators the mouse works just fine, thus enable it.
@@ -13,10 +13,12 @@
  
  " Switch syntax highlighting on, when the terminal has colors
  " Also switch on highlighting the last used search pattern.
-@@ -90,7 +90,10 @@
- " 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.
+-if &t_Co > 2 || has("gui_running")
++if (&t_Co > 2 || has("gui_running")) && filereadable($VIMRUNTIME."/syntax/syntax.vim")
+   syntax on
+   set hlsearch
+ endif
+@@ -93,4 +93,7 @@
 -if !exists(":DiffOrig")
 +if v:progname =~! "vi" && !exists(":DiffOrig")
    command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
================================================================

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



More information about the pld-cvs-commit mailing list