JET_toggle


Ⅰ. 插件描述

Dynamically add sets of commands to toggle between with a hotkey

Ⅱ. 基本信息

创建日期:  2007-07-28
使用用户:  1
Github星:  1
插件作者:  Jai Tkker

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

<!-- === START_DOC
JET_toggle.txt           Plugin to dynamically add toggles #version#

                         JET_TOGGLE REFERENCE MANUAL~

==============================================================================
CONTENTS {{{2                                        JET_togglelist-contents

    1. Intro ................................... |JET_toggle|
    2. How to add a toggle ..................... |JET_toggle-howto|
    3. Feedback ................................ |JET_toggle-feedback|

==============================================================================

  1. Intro {{{2                                                     JET_toggle

    JET_toggle provides a mechanism for adding toggle commands and mapping
  them to a shortcut.

==============================================================================

  1. How to add a toggle {{{2                                 JET_toggle-howto

  Source the script from your .vimrc, and then add whatever toggles you want.
  

  Syntax:
  
    JET_AddToggle(':someCommandString', ':someOtherCommandString', '<keymap>')
  
  
  Example:
  
    source ~/.vim/plugin/JET_toggle.vim
    JET_AddToggle(':set list', ':set nolist', '<C-l>')
    JET_AddToggle(':set paste', ':set nopaste', '<M-p>')
  

    Then, when you type control-l it will toggle between ':set list' and
  ':set nolist' and when you type alt-p it will toggle between ':set paste'
  and ':set nopaste'.

  

  1. Feedback {{{2                                         JET_toggle-feedback

  Constructive feedback is welcome, send it to outtatime.at-symbol.gmail.com
  with [JET_toggle] in the subject line.  Enjoy!
-->

添加新评论