gen_vimoptrc.vim


Ⅰ. 插件描述

Generate vim option configuration file from option-window.

Ⅱ. 基本信息

创建日期:  2007-11-30
使用用户:  1
Github星:  1
插件作者:  omi taku

Ⅲ. 安装方法

使用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

  1. 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.

  1. Restart Vim.

Usage

  1. Run ":options" command.
  2. Update your vim options.
  3. Run ":GenVimOptrc" command in "option-window",
       this command generate "_gvimoptrc" in your $HOME directory.
  4. Source "_gvimoptrc" in your gvimrc,
       for example

   :if has("gui_running")
     :source $HOME/_gvimoptrc
   :endif

Configuration

  1. You want use ".gvimoptrc" instead of "_gvimoptrc",
       set your _gvimrc this code.

  
   example.
       :let g:GEN_VIMOPTRC_USE_DOT = 1

Limitation

  1. Currently only GUI version of vim is supported.

Note

  1. see also ":help save-settings".

添加新评论