Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Create absent dirs automatically {{{2
- augroup auto_mkdir
- autocmd!
- autocmd BufWritePre *
- \ if !isdirectory(expand('<afile>:p:h')) |
- \ call mkdir(expand('<afile>:p:h'), 'p') |
- \ endif
- augroup END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement