From 87b8fc7a573e349ba2d7d13a165fb254993adb48 Mon Sep 17 00:00:00 2001 From: Chris Coley <chris@codingallnight.com> Date: Sun, 6 Sep 2015 23:12:32 -0700 Subject: [PATCH] Updated vimrc to change terminal title to user@hostname upon exiting Vim --- vimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/vimrc b/vimrc index a29aef8..5f0d9dc 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 -- GitLab