vim Saving a buffer in a non-existent dir


Example

:!mkdir -p %:h

to create the missing directories, then

:w