Does anyone know how I can get the directory name of the CWD without the preceding path?
I'm trying to build a titlestring like this one:
{cwd_dirname_without_path}/{file_path_relative_to_cwd}
I think %f
would suffice for the second part of the title, but the first part seems tricky.
:h ::.
and theexpand()
function