Ⅰ. 插件描述
Quick toggling of boolean optionsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/switch'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/switch'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/switch'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/Switch
Ⅳ. 文档说明
This plugin enables you to toggle any Vim boolean options between 'on' and 'off' using just one key mapping for each of tree possible vim modes.
Basic usage:
<C-Q> {optkey} Toggle an option.
<C-Q> <Tab> Print the options list.
<C-Q> <F1> Print help on usage, similar to this paragraph.
<C-Q> <C-Q> {optkey} Print the current value of an option.
<C-Q> <CR> {optkey} Invoke :help on an option.
- This plugin is related to the Univrc project (http://univrc.org)