SOURCES: vim-vimrc.patch - disable vim features in vi (thus avoidi...

baggins baggins at pld-linux.org
Wed Oct 10 17:28:34 CEST 2007


Author: baggins                      Date: Wed Oct 10 15:28:34 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- disable vim features in vi (thus avoiding error message on startup)

---- Files affected:
SOURCES:
   vim-vimrc.patch (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/vim-vimrc.patch
diff -u SOURCES/vim-vimrc.patch:1.4 SOURCES/vim-vimrc.patch:1.5
--- SOURCES/vim-vimrc.patch:1.4	Thu Jun 21 15:21:36 2007
+++ SOURCES/vim-vimrc.patch	Wed Oct 10 17:28:29 2007
@@ -9,10 +9,14 @@
  
  " Switch syntax highlighting on, when the terminal has colors
  " Also switch on highlighting the last used search pattern.
-@@ -83,3 +83,8 @@
+@@ -83,5 +83,10 @@
+ 
+ " Convenient command to see the difference between the current buffer and the
  " 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
 +
 +" ADDED BY PLD.
 +" USE :help colorscheme FOR INFO
================================================================

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



More information about the pld-cvs-commit mailing list