vimrc: only set title if the caller requests it or in gvim
[grml-etc-core.git] / etc / vim / vimrc
index 8cc5eca..2a7dd0f 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') && ($NOPRECMD != '1')
+  if ((&term =~ '^screen') && ($VIM_PLEASE_SET_TITLE =~ '^yes$') || has('gui_running'))
     set t_ts=\ek
     set t_fs=\e\
     set title