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:
parent
3070940cd1
commit
644a3bdc90
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue