X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fvim%2Fvimrc;fp=etc%2Fvim%2Fvimrc;h=8c76c8ac3b08bf1a7ffbcd77e1a2a66cde6f6ea1;hb=8e3a00e1a0539e5357a977a4769b2e402e3fbd5a;hp=4c01be2cf9f53a8318add50cfd62ca5fde7a57a0;hpb=5fefe781aa75c8d2f78c04589421c538adf452cb;p=grml-etc-core.git diff --git a/etc/vim/vimrc b/etc/vim/vimrc index 4c01be2..8c76c8a 100644 --- a/etc/vim/vimrc +++ b/etc/vim/vimrc @@ -95,6 +95,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') + 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")