auto_mkdir


Ⅰ. 插件描述

Vim plugin that allows you to save files into directories that do not exist yet.

Ⅱ. 基本信息

创建日期:  2010-12-07
使用用户:  127
Github星:  34
插件作者:  Johannes Holzfuß

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'datawraith/auto-mkdir'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'datawraith/auto-mkdir'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'datawraith/auto-mkdir'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/datawraith/auto_mkdir

Ⅳ. 文档说明

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

添加新评论