feat(vim): add ++p to the save file command

OMG this is AMAZING, it writes files and creates all the directories for
that file working the same as `mkdir -p`. I have honestly had a todo to
create a plugin that dose this on the before save hook for a long time.
Thank you reddit, and remember always read the manual `:help :w`!!
This commit is contained in:
Ade Attwood 2023-04-25 21:06:05 +01:00
parent 3070940cd1
commit 644a3bdc90

View file

@ -52,7 +52,7 @@ set noswapfile
set nowrap
noremap <silent> <leader>q :bdelete<cr>
noremap <silent> <leader>fs :w<cr>
noremap <silent> <leader>fs :w ++p<cr>
noremap <silent> <leader>o :Open