zshrc: Removing mostlike references competely
[grml-etc-core.git] / etc / vim / vimrc
index 4c01be2..2a7dd0f 100644 (file)
   set pastetoggle=<f11>               " don't change text when copy/pasting
   set dictionary=/usr/share/dict/word " used with CTRL-X CTRL-K
 
+""" set the screen hardstatus to vim(filename.ext)
+  if ((&term =~ '^screen') && ($VIM_PLEASE_SET_TITLE =~ '^yes$') || has('gui_running'))
+    set t_ts=\ek
+    set t_fs=\e\
+    set title
+    autocmd BufEnter * let &titlestring = "vim(" . expand("%:t") . ")"
+    let &titleold = fnamemodify(&shell, ":t")
+  endif
+
 " Source a global configuration file if available
 " Deprecated by Debian but still supported by grml
   if filereadable("/etc/vim/vimrc.local")