vim-onoff


Ⅰ. 插件描述

Turn Vim options on. Off.

Ⅱ. 基本信息

创建日期:  2014-04-06
使用用户:  1
Github星:  5
插件作者:  Vital Kudzelka

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

// Vim onoff //

                on/off boolean options in Vim

~ What is it?

  Vim has a lot of different boolean options — `cursorline`,
  `number`, `list`, `spell`, etc. Toggle them *gracefully*.

  Plugin provides the `:Onoff` command to switch boolean options
  in Vim. After each turn option value shown at bottom of the
  window.

  Feel free to create a handy aliases for most used options:

  nnore <Leader>n :Onoff number<cr>
  nnore <Leader>p :Onoff paste<cr>
  nnore <Leader>s :Onoff spell<cr>

  For those who want to use `:Onoff` command explicitly, `:onoff`
  abbreviation is available. Abbreviation works on when 'onoff'
  is the first word on the command line.

  Note that `:Onoff` command has autocompletion for all available
  boolean options supported by your Vim distribution.

~ Installation

  * via pathogen.vim (https://github.com/tpope/vim-pathogen):

  cd ~/.vim/bundle
  git clone git://github.com/vitalk/vim-onoff.git

  * via Vundle (https://github.com/gmarik/Vundle.vim):

  Plugin 'vitalk/vim-onoff'

~ Contributing

  Don't hesitate to create a GitHub Issue
  (https://github.com/vitalk/vim-onoff/issues) if you have any
  bugs or suggestions.

~ Self-Promotion

  If you enjoy it follow repository on GitHub
  (https://github.com/vitalk/vim-onoff) and vote for it on vim.org
  (http://www.vim.org/scripts/script.php?script_id=4916).

~ License

  Copyright (c) by Vital Kudzelka.

  Distributed under the same terms as Vim itself.
  See `:help license`.

添加新评论