toggle.vim

vim.toggle is a plugin for Vim that toggles known values under the cursor in normal or visual mode with a user definable macro. The plugin targets booleans, numbers, strings, and operators. Casing is preserved.

Known values are:

true    <->    false
on      <->    off
yes     <->    no
+       <->    -
>       <->    <
define  <->    undef
|       <->    &
||      <->    &&

Details

light-switch.jpg