sponsor Vim development Vim logo Vim Book Ad

toggle_option : Initial upload

 script karma  Rating 0/0, Downloaded by 909  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: 216.73.216.130

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github