Display filename, modification flag, full path, argument list status,
the current user, host and program name (to distinguish vim/view/etc).
set title " Set title to the value of 'titlestring' or to 'filename - VIM'
set titleold= " string to restore the title to when exiting Vim
+" String to use for the Vim window title; with statusline printf items:
+" display filename, modification flag, full path, argument list status,
+" the current user, host and program name (to distinguish vim/view/etc).
+set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:p:h\")})%)%(\ %a%)\ -\ [%{$USER}@%{hostname()}]\ %{v:progname}
" 9 using the mouse