diff options
Diffstat (limited to 'vim.dot.link/plugin/window_title.vim')
-rw-r--r-- | vim.dot.link/plugin/window_title.vim | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/vim.dot.link/plugin/window_title.vim b/vim.dot.link/plugin/window_title.vim index b602af1..af0ce01 100644 --- a/vim.dot.link/plugin/window_title.vim +++ b/vim.dot.link/plugin/window_title.vim @@ -1,20 +1,22 @@ -" window_title.vim - Window title handling +" window_title.vim - Window title handling {{{ " " Author: Silvio Rhatto <rhatto@riseup.net> -" Basic settings +" Basic settings {{{ set title set titleold="terminal" set titlestring=vim:\ %F +" }}} -" Handling titles when vim is embedded in specific programs +" Handling titles when vim is embedded in specific programs {{{ augroup vimleave autocmd! au VimLeave *mutt/* silent call ResetTitle("mutt") au VimLeave *remind/* silent call ResetTitle("calendar") augroup END +" }}} -" Reset window titles +" Reset window titles {{{ " " Thanks to http://stackoverflow.com/questions/1673649/vimrc-action-onclose function! ResetTitle(title) @@ -25,3 +27,4 @@ function! ResetTitle(title) "exec ":!echo -e '\033kbash\033\\'\<CR>" exec ":!xtitle -q " a:title endfunction +" }}} |