sponsor Vim development Vim logo Vim Book Ad

JET_toggle : Dynamically add sets of commands to toggle between with a hotkey

 script karma  Rating 17/8, Downloaded by 518  Comments, bugs, improvements  Vim wiki

created by
Jai Tkker
 
script type
utility
 
description
<!-- === 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.

==============================================================================
2. 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'.
  
==============================================================================
3. 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!
-->
 
install details
Source it from your .vimrc file and it will do the rest.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
JET_toggle.vim 0.1 2007-07-28 7.0 Jai Tkker Initial upload
ip used for rating: 18.221.53.5

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github