- Notifications
You must be signed in to change notification settings - Fork15
A text object to turn foo_bar_baz into foo_baz *and* quuxSpamEggs into quuxEggs *and* shine your shoes
License
Julian/vim-textobj-variable-segment
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A vim plugin providing a single text object (oniv andav) forvariable segments. A variable segment is defined to be a substring inany identifier character followed by an underscore ("snake case") ora lowercase identifier character followed by an uppercase character("camel case").
E.g.:
foo_ba|r_baz -> civquux -> foo_quux_bazQU|UX_SPAM -> civLOTS_OF -> LOTS_OF_SPAMeggsAn|dCheese -> civOr -> eggsOrCheese_privat|e_thing -> civone -> _one_thingfoo_ba|r_baz -> dav -> foo_bazQU|UX_SPAM -> dav -> SPAMeggsAn|dCheese -> dav -> eggsCheese_privat|e_thing -> dav -> _thingIt will also preserve case for small camels when initial segments are deleted(withav):
_g|etJiggyYo -> dav -> _jiggyYoRequiresvim-textobj-user.
About
A text object to turn foo_bar_baz into foo_baz *and* quuxSpamEggs into quuxEggs *and* shine your shoes
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.