vim-automatic


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2013-08-08
使用用户:  19
Github星:  11
插件作者:  osyo-manga

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'osyo-manga/vim-automatic'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'osyo-manga/vim-automatic'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'osyo-manga/vim-automatic'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/osyo-manga/vim-automatic

Ⅳ. 文档说明

#automatic.vim

ウィンドウを開いた時にそのウィンドウに対して設定を行うプラグインです。

Requirement

  • Vim version 7.3.895 以上

Screencapture

capture

Example

" g:automatic_config に対してどのような設定を行うのかを記述する
" "match" でどのウィンドウに対する設定かを指定し、
" "set" でその値を設定する
let g:automatic_config = [
\    {
\        "match" : {
\            "buftype" : "help",
\        },
\        "set" : {
\            "height" : 10,
\            "move" : "bottom",
\        },
\    },
\    {
\        "match" : {
\            "bufname" : '\[quickrun output\]',
\        },
\        "set" : {
\            "height" : 5,
\        }
\    },
\]

添加新评论