Skip Navigation

Auto-create folder when saving a new buffer

jdhao.github.io You Do Not Need a Plugin for This Feature

I saw from the repo awesome neovim1 a plugin that helps the user create the intermediate dir when they save a file. I wondered why this feature even needs a whole plugin? You can literally do this with a few lines of code.

If you find yourself adding a new file with :e but the folder isn't there yet, this is for u

1
1 comments