]> git.pld-linux.org Git - packages/vim.git/blobdiff - vim-vimrc.patch
build with gtk3 by default
[packages/vim.git] / vim-vimrc.patch
index 03c908f9cf6309f53e0fa2236f8d99d621f8f46c..3577949361efddd8dcb38d5f6e880974b4a6ee8e 100644 (file)
@@ -1,22 +1,47 @@
---- vim71/runtime/vimrc_example.vim~   2007-05-13 08:47:25.040494112 +0200
-+++ vim71/runtime/vimrc_example.vim    2007-05-13 08:49:53.405346643 +0200
-@@ -38,7 +38,7 @@
- map Q gq
+--- vim-7.4.2189/runtime/vimrc_example.vim~    2016-08-09 22:14:05.000000000 +0200
++++ vim-7.4.2189/runtime/vimrc_example.vim     2016-08-09 22:20:44.071303413 +0200
+@@ -26,7 +23,7 @@ else
+   endif
+ endif
  
- " In many terminal emulators the mouse works just fine, thus enable it.
--set mouse=a
-+"set mouse=a
+-if &t_Co > 2 || has("gui_running")
++if (&t_Co > 2 || has("gui_running")) && filereadable($VIMRUNTIME."/syntax/syntax.vim")
+   " Switch on highlighting the last used search pattern.
+   set hlsearch
+ endif
+@@ -56,3 +53,11 @@ endif " has("autocmd")
+ if has('syntax') && has('eval')
+   packadd matchit
+ endif
++
++" 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
++endi
+--- vim-7.4.2189/runtime/defaults.vim~ 2016-08-09 22:14:05.000000000 +0200
++++ vim-7.4.2189/runtime/defaults.vim  2016-08-09 22:26:29.727124083 +0200
+@@ -53,9 +53,9 @@ inoremap <C-U> <C-G>u<C-U>
  
- " Switch syntax highlighting on, when the terminal has colors
- " Also switch on highlighting the last used search pattern.
-@@ -83,5 +83,8 @@
+ " In many terminal emulators the mouse works just fine.  By enabling it you
+ " can position the cursor, Visually select and scroll with the mouse.
+-if has('mouse')
+-  set mouse=a
+-endif
++"if has('mouse')
++"  set mouse=a
++"endif
  
- " Convenient command to see the difference between the current buffer and the
+ " Switch syntax highlighting on when the terminal has colors or when using the
+ " GUI (which always has colors).
+@@ -99,7 +99,7 @@ endif " has("autocmd")
  " file it was loaded from, thus the changes you made.
-+if v:progname =~! "vi"
- command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
-               \ | wincmd p | diffthis
-+endif
-+
-+" USE :help colorscheme FOR INFO
-+"set background=dark
+ " Only define it when not defined already.
+ " Revert with: ":delcommand DiffOrig".
+-if !exists(":DiffOrig")
++if v:progname =~! "vi" && !exists(":DiffOrig")
+   command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
+                 \ | wincmd p | diffthis
+ endif
This page took 0.026072 seconds and 4 git commands to generate.