Skip to content

Is there a way to change the default text object %, also a second question #231

Answered by andymass
oredaze asked this question in Q&A
Discussion options

You must be logged in to vote

(1) is already supported, but you'll have to specify each customization individually; for instance:

xmap ib <plug>(matchup-i%)
omap ib <plug>(matchup-i%)
xmap ab <plug>(matchup-a%)
omap ab <plug>(matchup-a%)

There are not that many, perhaps 20 maps at most and depends on your preferences. We cannot possibly have an option to override all % maps, since it would also override b itself which is non-sense.

(2) Let me see if this can be supported. Initially it seems like it would be rarely useful since most of the time you are inside some { } editing code. But then it wouldn't hurt either.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by oredaze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants