From: Oleg Broytman Date: Thu, 3 Mar 2016 15:48:19 +0000 (+0300) Subject: .vimrc: set titlestring X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=757315ac7f99dcc3b167471721ca90336e5e4d1a .vimrc: set titlestring Display filename, modification flag, full path, argument list status, the current user, host and program name (to distinguish vim/view/etc). --- diff --git a/.vimrc b/.vimrc index c7f48f7..f3d60e5 100644 --- a/.vimrc +++ b/.vimrc @@ -71,6 +71,10 @@ set ttyfast " terminal connection is fast 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