]> git.phdru.name Git - dotfiles.git/commitdiff
.vimrc: Update `titlestring` from default
authorOleg Broytman <phd@phdru.name>
Sun, 14 Jun 2020 15:23:08 +0000 (18:23 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 14 Jun 2020 15:23:08 +0000 (18:23 +0300)
.vimrc

diff --git a/.vimrc b/.vimrc
index bb817148862ed8593ef8a5d03979cca28546fa0d..fae0e9f94bc1757db4fc29f6d39fd32c302f265c 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -91,7 +91,7 @@ set titleold=     " string to restore the title to when exiting Vim
 " set titlestring=%t%(\ %M%)%(\ (%{substitute(expand(\"%:p:h\"),\ $HOME,\ \"~\",\ \"\")})%)%(\ %a%)\ -\ %{toupper(v:progname)}
 " 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}
+set titlestring=%t%(\ %M%)%(\ (%{substitute(expand(\"%:p:h\"),\ $HOME,\ \"~\",\ \"\")})%)%(\ %a%)\ -\ %{v:progname}\ [%{$USER}@%{hostname()}]
 
 " 9 using the mouse