I'm trying to customize my window title, which uses the same format as the statusline. I know I can show the full path to the file with
%-0.20F to restrict it to 20 characters). I'd prefer to show the file name separately (i.e. with
%t). In this case, is there a way to show the full path to the containing directory instead?
If I don't set
titlestring at all, vim's window title seems to default to
file.txt (/full/path/to/containing/directory) - VIM3
I thought I might pillage the code for this, but
set titlestring? doesn't show anything.