Ⅰ. 插件描述
Generate vim option configuration file from option-window.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/gen-vimoptrc-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/gen-vimoptrc-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/gen-vimoptrc-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/gen_vimoptrc.vim
Ⅳ. 文档说明
Overview
Generate "_vimoptrc" file that contains your all vim optin settings.
New command ":GenVimOptrc", this script added, parse "option-window" and
generate configuration file to your home directory.
This script support your easily update configuration file.
Installation
- Copy the autoresize.vim script to the $HOME/.vim/plugin or
the $HOME/vimfiles/plugin. Refer to the ':help add-plugin',
':help add-global-plugin' and ':help runtimepath' topics for
more details about Vim plugins.
- Restart Vim.
Usage
- Run ":options" command.
- Update your vim options.
- Run ":GenVimOptrc" command in "option-window",
this command generate "_gvimoptrc" in your $HOME directory. - Source "_gvimoptrc" in your gvimrc,
for example
:if has("gui_running")
:source $HOME/_gvimoptrc
:endif
Configuration
- You want use ".gvimoptrc" instead of "_gvimoptrc",
set your _gvimrc this code.
example.
:let g:GEN_VIMOPTRC_USE_DOT = 1
Limitation
- Currently only GUI version of vim is supported.
Note
- see also ":help save-settings".