sponsor Vim development Vim logo Vim Book Ad

auto_mkdir : Allows you to save files into directories that do not exist yet.

 script karma  Rating 17/8, Downloaded by 1582  Comments, bugs, improvements  Vim wiki

created by
Johannes Holzfuß
 
script type
utility
 
description
This plugin automatically creates parent directories for the current file if they don't exist yet.


Example:
    If you're currently in an empty directory, without the plugin, the command
        :w foo/bar/baz.txt
    will fail with with E212 ("Can't open file for writing.")

    The plugin will automatically create the directories foo/ and foo/bar/ for you before Vim saves
    the file, so you don't have to remember to do it manually.


Also available via git:
    https://github.com/DataWraith/auto_mkdir
 
install details
Save auto_mkdir.vim into the plugin/ directory of your runtime-path.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
auto_mkdir.vim 1.0.0 2010-12-07 7.0 Johannes Holzfuß Initial upload
ip used for rating: 3.141.100.120

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github