What’s a keyword swapper? See the following should tell you enough about its purpose:
swapit.vim was created by Michael Brown. By default, it can swap different variations of boolean values, such as true, True, or on. Also C data types, such as int or bool.
The swapping is done by C-a or C-x, the ones you use to increase or decrease numbers or characters. And to define you own swap list, one command like the following would do:
:SwapList drinks coffee tea beer wine
Now you can swap coffee for tea, wanna cuppa, anyone?
It can also swap multi-word, but you will need to visual select the entire words. Several ftplugin are shipped by default, such as html, htmldjango, php, or vim. There is also a use of omnicomplete for CSS, according to the plugin description.
Personally, I very much like the boolean toggling, which I believe could be useful, but others like data types, I don’t think so. It might be faster to delete the whole word and type the one you want.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.