From 757315ac7f99dcc3b167471721ca90336e5e4d1a Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 3 Mar 2016 18:48:19 +0300 Subject: [PATCH] .vimrc: set titlestring Display filename, modification flag, full path, argument list status, the current user, host and program name (to distinguish vim/view/etc). --- .vimrc | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5