As the title says.
I’ve been searching for quite a while, and if it’s easy then I must be blind.
But what is the best way to only output the current file’s name? Using expand('%') I get the relative path, as far as I can tell.
Using %f gives me the relative path, and %F gives me the full path from home (if I’m in home folder).
So how can I achieve this? Only get the current file’s name, as it would appear in the buffer name.
Thanks for your help!
Use:
tas in tail of filename of file in the buffer.