Skip to content

Commit 30f7bc9

Browse files
authored
Merge pull request #20 from Konfekt/master
add Vim help
2 parents 78457d4 + 2a20910 commit 30f7bc9

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

doc/vim-textobj-variable-segment.txt

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
vim-textobj-variable-segment.txt
2+
3+
================================================================================
4+
CONTENTS *vim-textobj-variable-segment-contents*
5+
6+
1. vim-textobj-variable-segment.|vim-textobj-variable-segment-vim-textobj-variable-segment|
7+
8+
================================================================================
9+
VIM-TEXTOBJ-VARIABLE-SEGMENT *vim-textobj-variable-segment-vim-textobj-variable-segment*
10+
11+
A vim plugin providing a single text object (on `iv` and `av`) for
12+
variable segments. A variable segment is defined to be a substring in
13+
any identifier character followed by an underscore ("snake case") or
14+
a lowercase identifier character followed by an uppercase character
15+
("camel case").
16+
17+
E.g.:
18+
>
19+
foo_ba|r_baz -> civquux -> foo_quux_baz
20+
QU|UX_SPAM -> civLOTS_OF -> LOTS_OF_SPAM
21+
eggsAn|dCheese -> civOr -> eggsOrCheese
22+
_privat|e_thing -> civone -> _one_thing
23+
foo_ba|r_baz -> dav -> foo_baz
24+
QU|UX_SPAM -> dav -> SPAM
25+
eggsAn|dCheese -> dav -> eggsCheese
26+
_privat|e_thing -> dav -> _thing
27+
<
28+
29+
It will also preserve case for small camels when initial segments are deleted
30+
(with `av`):
31+
>
32+
_g|etJiggyYo -> dav -> _jiggyYo
33+
<
34+
35+
Requires vim-textobj-user (https://github.com/kana/vim-textobj-user).
36+
37+
vim:tw=78:ts=8:ft=help:norl:

0 commit comments

Comments
 (0)