projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5fefe78
)
vimrc: display the file, that is being edited into screen's hardstatus
author
Frank Terbeck
<ft@grml.org>
Fri, 18 Jan 2008 20:28:12 +0000
(21:28 +0100)
committer
Frank Terbeck
<ft@grml.org>
Fri, 18 Jan 2008 20:28:12 +0000
(21:28 +0100)
etc/vim/vimrc
patch
|
blob
|
history
diff --git
a/etc/vim/vimrc
b/etc/vim/vimrc
index
4c01be2
..
8c76c8a
100644
(file)
--- a/
etc/vim/vimrc
+++ b/
etc/vim/vimrc
@@
-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 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=
\e
k
+ 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")
" Source a global configuration file if available
" Deprecated by Debian but still supported by grml
if filereadable("/etc/vim/vimrc.local")