Added a "Write and Mkdir" command
This commit is contained in:
parent
a8ea9c87d3
commit
029db6e062
@ -82,3 +82,11 @@ endif
|
|||||||
|
|
||||||
" Enable Leap
|
" Enable Leap
|
||||||
lua require('leap').add_default_mappings()
|
lua require('leap').add_default_mappings()
|
||||||
|
|
||||||
|
" Custom functions
|
||||||
|
function! MkdirAndWrite()
|
||||||
|
let dir = expand('%:p:h')
|
||||||
|
exec '!mkdir -p ' . dir
|
||||||
|
exec 'w'
|
||||||
|
endfunction
|
||||||
|
command Wmk call MkdirAndWrite()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user