From 644a3bdc90806abf07fe682ba2882549dbaf5c7f Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Tue, 25 Apr 2023 21:06:05 +0100 Subject: [PATCH] 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`!! --- site-modules/core/files/vim/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-modules/core/files/vim/init.vim b/site-modules/core/files/vim/init.vim index ffda289..bd79a9e 100644 --- a/site-modules/core/files/vim/init.vim +++ b/site-modules/core/files/vim/init.vim @@ -52,7 +52,7 @@ set noswapfile set nowrap noremap q :bdelete -noremap fs :w +noremap fs :w ++p noremap o :Open