Skip to content

Instantly share code, notes, and snippets.

@charlesthomas
Created April 1, 2014 15:03
Show Gist options
  • Save charlesthomas/9915977 to your computer and use it in GitHub Desktop.
Save charlesthomas/9915977 to your computer and use it in GitHub Desktop.
Set window title to hostname when exiting vim
" 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