Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.