X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fvim%2Fvimrc;h=a40a8449c3447796db5bd6363dc185e2ed30a07e;hb=9de146659752dda7e6413debfea77820735d1611;hp=4c01be2cf9f53a8318add50cfd62ca5fde7a57a0;hpb=99344abf956e7ac4eb73e7b765f46086296e5f45;p=grml-etc-core.git diff --git a/etc/vim/vimrc b/etc/vim/vimrc index 4c01be2..a40a844 100644 --- a/etc/vim/vimrc +++ b/etc/vim/vimrc @@ -3,7 +3,6 @@ " Authors: grml-team (grml.org), (c) Michael Prokop " Bug-Reports: see http://grml.org/bugs/ " License: This file is licensed under the GPL v2. -" Latest change: Mon Dez 24 21:07:04 CET 2007 [mika] """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just @@ -95,6 +94,15 @@ set pastetoggle= " 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=k + set t_fs=\ + 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")