I can use
%t in my
statusline to display the file name (tail) of the file in the buffer, but there's no corresponding option to display only the path, without the file name.
What I'm after: I'd like to display the path to the file in the buffer (as
%f does), but I want the file name to stand out by giving it a different color. So if there were a corresponding
%h (head) item I would just do:
set statusline= set statusline+=%h " Path to file (head) set statusline+=%#Keyword# " Switch color set statusline+=%t " File name (tail)
Does anyone know how can I achieve this?