Vim plugin to toggle boolean values.
- true <-> false
- yes <-> no
- on <-> off
- 0 <-> 1
- enable(d) <-> disable(d)
- first <-> last
- before <-> after
Use your plugin manager of choice.
- vim-plug
- Add
Plug 'vayw/vim-logic-toggle'
to .vimrc - Run
:PlugInstall
- Add
To invoke you need to call :ToggleBool
. You can map accordingly.
For example, to map to <leader>t
you need to add following to your .vimrc
noremap <leader>t :ToggleBool<CR>