If I'm at file /a/b/c/foo.txt
, I'd like the statusline to display c/foo.txt
. Is this possible?
The reason for this is that for web development, too many files are named index.js
to make just the tail useful, while the full path (or relative path) is too long to make it easy to parse.
The only relevant statusline options I see are:
%f
which is the path relative to the current directory%F
the full path to the file%t
only the filename (tail).
%f
I would simplycd /a/b/
:)