diff --git a/vimrc b/vimrc
index a29aef8d1a96c95a46ce61f41253fb2b5db97eee..5f0d9dc50a8f9237e513bffbaef56da63aab28e6 100644
--- a/vimrc
+++ b/vimrc
@@ -58,6 +58,7 @@ autocmd BufNewFile,BufRead [Mm]akefile* setlocal noexpandtab
 
 " Set the terminal title to reflect the open file. Even works with Vim tabs.
 autocmd BufEnter * let &titlestring = expand("%:t") . " - %{$USER}@" . hostname() | set title
+autocmd VimLeave * let &titleold = $USER . "@" . hostname() | set title
 
 
 " Filetype specific indentation