From 222a81c0bf30ecd50b09833f413e9ffdbae44b14 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 13 May 2009 23:36:02 +0000 Subject: [PATCH] - allow missing runtime/syntax/* dir Changed files: vim-vimrc.patch -> 1.10 --- vim-vimrc.patch | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/vim-vimrc.patch b/vim-vimrc.patch index 4ff61ea..430a46e 100644 --- a/vim-vimrc.patch +++ b/vim-vimrc.patch @@ -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 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 -- 2.44.0