aboutsummaryrefslogtreecommitdiff
path: root/plugin/max-set-window-title.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/max-set-window-title.vim')
-rw-r--r--plugin/max-set-window-title.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/plugin/max-set-window-title.vim b/plugin/max-set-window-title.vim
new file mode 100644
index 0000000..1a84ac3
--- /dev/null
+++ b/plugin/max-set-window-title.vim
@@ -0,0 +1,21 @@
1
2
3augroup SET_WINDOW_TITLE
4 set title
5 set titlelen=40
6
7 " set window title for screen(3)
8 " if &term == "screen" || &term == "xterm"
9 if &term == "screen"
10 set t_ts=k
11 set t_fs=\
12 endif
13
14 " autocmd BufEnter * let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]"
15 " autocmd CursorHold * let &titlestring = "%t %y ".$USER."@".hostname().":%{expand("%:~:.:h")}"
16 " Fix terminal title =================================================================================================
17 " autocmd VimEnter * let &t_EI .= "\<Esc>[0 q"
18 " autocmd VimEnter * let &t_SI = "\<Esc>]12;green\x7"
19 autocmd VimLeave * silent !echo -ne "\033]112\007"
20augroup END
21
..