Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.
/ vim-mkdir Public archive

Automatically create any non-existent directories before writing the buffer.

Notifications You must be signed in to change notification settings

pbrisbin/vim-mkdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Note

All of my GitHub repositories have been archived and will be migrated to Codeberg as I next work on them. This repository either now lives, or will live, at:

https://codeberg.org/pbrisbin/vim-mkdir

If you need to report an Issue or raise a PR, and this migration hasn't happened yet, send an email to [email protected].

Mkdir

Maggie! Don't even ask. Just bring it. Come on.

-- Hot Rod

Installation

Add pbrisbin/vim-mkdir to your preferred vim plugin management plugin list.

I happen to use lua configuration and minpac, so my ~/.config/nvim/init.lua contains,

vim.cmd [[ packadd minpac ]]

vim.call('minpac#init')
vim.call('minpac#add', 'pbrisbin/vim-mkdir')

Usage

:e this/does/not/exist/file.txt
:w

Smile when you are not presented with an error. Instead, notice that vim has automatically created the non-existent directory for you.

About

Automatically create any non-existent directories before writing the buffer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •