sponsor Vim development Vim logo Vim Book Ad

toggle_option : Initial upload

 script karma  Rating 0/0, Downloaded by 664  Comments, bugs, improvements  Vim wiki

created by
Christophe-Marie Duquesne
 
script type
utility
 
description
This script provides a very small utility to toggle an option or a variable with an unified syntax. This can be useful when writing scripts.

Usage:

:Toggle <my-options>

example

:Toggle paste
:Toggle paste spell
:let g:my_variable=0
:Toggle g:my_variable
 
install details
Just put this script in your .vim/plugin/ directory
 

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
toggle_option.vim 0.0.2 2010-10-27 7.0 Christophe-Marie Duquesne Improved the script thanks to Salman Halim
toggle_option.vim 0.0.1 2010-10-25 7.0 Christophe-Marie Duquesne Initial upload
ip used for rating: 3.226.254.255

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