From 30c25809881f181d9ee155899212f0e197349802 Mon Sep 17 00:00:00 2001 From: Mikko Lehto Date: Sat, 22 Sep 2018 22:05:09 +0300 Subject: [PATCH] vim: make buffer name on statusline more sensible with fugitive From vim documentation: - %f Path to the file in the buffer, as typed or relative to current directory - %F Full path to the file in the buffer - %t File name (tail) of file in the buffer --- vim/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index 2fc8b9e..c98e1a1 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -63,7 +63,7 @@ if &diff endif set statusline= -set statusline+=%t "tail of the filename +set statusline+=%F "full path to the file in the buffer set statusline+=[%{strlen(&fenc)?&fenc:'none'}, "file encoding set statusline+=%{&ff}] "file format set statusline+=%h "help file flag