Automatically call mkdir -p as necessary when writing files.
With Vundle
In vimrc:
Bundle 'benizi/vim-automkdir'Then:
:BundleInstallWith vim-addon-manager
:InstallAddons github:benizi/vim-automkdirOpen a file, even if its directory doesn't exist.
Save it.
Within vim run:
:help automkdir