It happens that you want to save a file in a subdirectory that does not exist yet, as in
when the directory
one-met-today/ does not exist.
In the shell, that would be like running
mkdir "$(dirname ~/customers/one-met-today/"
It would be great if multiple levels could be created, like in shell
mkdir -p "$(dirname ~/customers/one-met-today/notes/offer.txt)"
so I can do
I would prefer using an option for making
:w just support that.
what would be the command to solve it with shell
mkdir without typing the file name twice?
Or maybe use
:w? But that feels a little unclean, because it modifies basic behaviour in an obscure way.