scy, There are days when I'd like to throw Vim at the wall.
:set stl=%f%{&modified?'\ •':''}
will have a status line like
README.md •
with the bullet point (•) if the file is modified.
:set stl=%{fnamemodify(expand('%%:p'),':~:.')}%{&modified?'\ •':''}
will eat the space before the bullet point for some reason.
All I did is replace %f with the %{…} expression.
This happens both in #Vim 9.0.1378 and #Neovim 0.7.2, and also if I replace • with any other character.
Ideas, anyone?