mlessnau_case : "in-case" selection, deletion and substitution for underscore, camel, mixed case
| script karma
Downloaded by 451
Comments, bugs, improvements
script versions (upload new version)
|This plugin introduces 3 new Vim commands:
1. vic (select in-case)
2. dic (delete in-case) -- this mapping is disabled as of version 0.2 (you can define your own if you need to)
3. cic (change/substitute in-case)
Supported identifier cases are "camel case" (coolCat, CoolCat), "snake case" (good_dog, GOOD_DOG) and a mix of both (_coolDog, Good_Cat).
By using the above commands you can quickly select, delete or change segments of cased identifiers depending on which segment the cursor is pointing at. For example ([x] denotes the cursor position, or selection):
viw: Fo[o]Bar -> [Foo]Bar (-> visual mode)
ciw: foo_[B]arBaz -> foo_Baz (-> insert mode)
in order to use in-case deletion you may map the call to DeleteInCase() accordingly.
|1. Copy the file in your plugin folder (i.e. ~/.vim/plugin)
You'll need to restart running Vim instances in order to be able to use of the plugin.
Click on the package to download.
ip used for rating: 18.104.22.168