vimrc: add check for $NOPRECMD
authorMichael Prokop <mika@grml.org>
Sat, 28 Feb 2009 15:59:23 +0000 (16:59 +0100)
committerMichael Prokop <mika@grml.org>
Sat, 28 Feb 2009 15:59:23 +0000 (16:59 +0100)
debian/changelog
etc/vim/vimrc

index ccae0c1..78ce57d 100644 (file)
@@ -1,10 +1,14 @@
 grml-etc-core (0.3.65) unstable; urgency=low
 
+  [ Frank Terbeck ]
   * zshrc: Add $NOTITLE to disable alteration of terminal titles.
     Based on an idea by Timo Boettcher.
   * zshrc: Cleaned up abbreviations by Alexander Steinböck.
 
- -- Frank Terbeck <ft@grml.org>  Fri, 27 Feb 2009 22:06:31 +0100
+  [ Michael Prokop ]
+  * vimrc: add check for $NOPRECMD [Closes: issue447]
+
+ -- Michael Prokop <mika@grml.org>  Sat, 28 Feb 2009 16:58:53 +0100
 
 grml-etc-core (0.3.64) unstable; urgency=low
 
index 8c76c8a..8cc5eca 100644 (file)
@@ -96,7 +96,7 @@
   set dictionary=/usr/share/dict/word " used with CTRL-X CTRL-K
 
 """ set the screen hardstatus to vim(filename.ext)
-  if (&term =~ '^screen')
+  if (&term =~ '^screen') && ($NOPRECMD != '1')
     set t_ts=\ek
     set t_fs=\e\
     set title