tpope/vim-speeddating — Issue #4: Suggestion: add support for true/false, on/off, yes/no…
Author: denilsonsa
Created: 2011-10-15 04:14:39+00:00
State: open

I found this old plugin called [Toggle][vs] ([github mirror][gh]) and it uses an inconvenient shortcut. And there is also [toggle_words][tw] ([github mirror][gh2]) that does basically the same thing. And then I though: it makes a lot of sense to toggle booleans using `^A` and `^X`!

So, as a feature request, you could add this feature to speeddating. No need to support everything, just the most common cases:

* true/false; True/False; TRUE/FALSE (case-preserving)
* on/off; On/Off; ON/OFF (case-preserving)
* yes/no; Yes/No; YES/NO (case-preserving)

I'm not sure if toggling if/elseif/else and define/undef is useful.

[vs]: http://www.vim.org/scripts/script.php?script_id=895
[gh]: https://github.com/vim-scripts/Toggle
[tw]: http://www.vim.org/scripts/script.php?script_id=1676
[gh2]: https://github.com/vim-scripts/toggle_words.vim