vayw / toggle-bool

vim plugin to toggle the boolean values

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

THIS REPO IS ARCHIVED

I suggest you to use pure vim script implementaion of this plugin

https://github.com/vayw/vim-logic-toggle

toggle-bool

Vim plugin to toggle boolean values.

List of boolean values supported

  • true <-> false
  • yes <-> no
  • on <-> off
  • 0 <-> 1
  • enable(d) <-> disable(d)
  • first <-> last
  • before <-> after

Installation

Use your plugin manager of choice.

  • Pathogen
    • git clone https://github.com/sagarrakshe/toggle-bool ~/.vim/bundle/toggle-bool
  • Vundle
    • Add Bundle 'https://github.com/sagarrakshe/toggle-bool' to .vimrc
    • Run :BundleInstall
  • NeoBundle
    • Add NeoBundle 'https://github.com/sagarrakshe/toggle-bool' to .vimrc
    • Run :NeoBundleInstall
  • vim-plug
    • Add Plug 'https://github.com/sagarrakshe/toggle-bool' to .vimrc
    • Run :PlugInstall

Usage

To invoke you need to call :ToggleBool. You can map accordingly. For example, to map to <leader>r you need to add following to your .vimrc

noremap <leader>r :ToggleBool<CR>

Todo

  1. When word is replaced with the toggled value, it eats leading and trailing spaces.
  2. Support more for more values and logical operators.

About

vim plugin to toggle the boolean values


Languages

Language:Vim Script 60.2%Language:Python 39.8%