Skip to content

Commit

Permalink
vim: make buffer name on statusline more sensible with fugitive
Browse files Browse the repository at this point in the history
   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
  • Loading branch information
mslehto committed Sep 22, 2018
1 parent c338ac0 commit 30c2580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30c2580

Please sign in to comment.