Hi,
is it possible to use something like an "vim-close/exit"-Event to execute some last commands before vim quits?
I use this lines in my config, to let vim set my screen-title:
if $TERM=='xterm-color'
exe "set title titlestring=vim:%t" exe "set title t_ts=\<ESC>k t_fs=\<ESC>\\"
endif
but when i close vim, the title is set to: "Thanks for flying Vim" (whereever that comes from...)
My goal is, to reset the title to the old one - if possible - and if not - set is to something like "bash" with that "exe"-Command
So.. is there something like an "close-event" in vim?
Thanks :)