1
0
forked from extern/nix-config

vim: Allow saving in directories that don't exist

Now those directories will be automatically created as needed.
This commit is contained in:
Donovan Glover 2022-12-15 11:41:46 -05:00
parent 5158c66c28
commit eec27882da
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -208,6 +208,9 @@ nnoremap <silent> <leader>2 :PencilSoft<CR>:Goyo<CR>:hi vertsplit ctermfg=0 cter
nnoremap <silent> <leader>3 :mksession! ~/.vim/.session<CR>
nnoremap <silent> <leader>4 :source ~/.vim/.session<CR>
" Never worry about a directory not being created before saving
autocmd BufWritePre,FileWritePre * silent! call mkdir(expand('<afile>:p:h'), 'p')
" =========================
" ========= netrw =========
" =========================