vimrc: display the file, that is being edited into screen's hardstatus
authorFrank Terbeck <ft@grml.org>
Fri Jan 18 21:28:12 2008 +0100 (7 months ago)
changeset 363acfecae478bc
manifestacfecae478bc
parent 362e31697f3a2e0
child 364cb78ace4fee4
vimrc: display the file, that is being edited into screen's hardstatus
etc/vim/vimrc
--- a/etc/vim/vimrc Wed Jan 16 13:40:38 2008 +0100
+++ b/etc/vim/vimrc Fri Jan 18 21:28:12 2008 +0100
@@ -95,6 +95,15 @@
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')
+ 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")