Saving

Saving a buffer in a non-existent dir

:!mkdir -p %:h

to create the missing directories, then

:w