sponsor Vim development Vim logo Vim Book Ad

Switch : Quick toggling of boolean options

 script karma  Rating 27/9, Downloaded by 1379  Comments, bugs, improvements  Vim wiki

created by
Tomás RC
 
script type
utility
 
description
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)
 
install details
 

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
switch.1.00.zip 1.00 2009-09-30 7.0 Tomás RC Beautifully rewritten by Andy Wokula.
switch.vim 0.13 2009-02-25 7.0 Tomás RC Small improvement on the help options table
switch.vim 0.12 2008-07-30 7.0 Tomás RC Added: map keys now can be defined in the configuration section
Fixed: one global variable was not being removed
switch.vim 0.11 2008-07-26 7.0 Tomás RC 1. Now operable in three modes;
2. Now the list of options reflects their state;
3. Now all the global variables are cleaned;
4. Now all configurable variables are kept in one section.
switch.vim 0.10 2008-07-10 7.0 Tomás RC Loads of nice improvements on its look, feel and control by Andy Wokula.
switch.vim 0.9.1 2008-04-13 7.0 Tomás RC Many 'key:option' pairs added to the default boolean options dictionary;
Echoing of the dictionary's keys visually improved;
Dictionary's name changed to g:prev_Switch_Dict;
switch.vim 0.9 2008-04-12 7.0 Tomás RC Initial upload
ip used for rating: 3.145.186.6

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