Created
April 1, 2014 15:03
-
-
Save charlesthomas/9915977 to your computer and use it in GitHub Desktop.
Set window title to hostname when exiting vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" If you use settitle, vim will set the window title to the file you have open, but when you exit, it sets the window title to | |
" Thanks for Flying Vim. | |
" In order to set it to the hostname of the machine you're on when exiting, use this: | |
execute "set titleold=".hostname() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment