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:
parent
5158c66c28
commit
eec27882da
@ -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 =========
|
||||
" =========================
|
||||
|
Loading…
Reference in New Issue
Block a user