Fall back to default vim behavior after first visual selection #8

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
2 participants

This commit fixes a couple of issues:

  • Chaining i{ after the initial vi{ doesn't work very well. Eg, vi{i{ does not expand after the intial selection.
  • Chaining i{ doesn't work at all if virtualedit=all and the last } is preceded by a tab.

The vim default behavior is a good fall back for chaining i{ (and other "default" text objects). This change only affects i, not a.

@justinmk justinmk Fall back to default vim behavior after first visual selection
- If we are already in a visual-mode selection, it doesn't make sense to "seek" the next {, (, ", etc. The vim default behavior tends to be more desirable.
- Also fixes: selection only expands if right-object is specified
- Also fixes virtualedit=all
17278d2
Owner

paradigm commented Aug 26, 2013

Oooh, thanks! I'll take a look at it and hopefully merge in the next 48 hours or so.

So just to summarize, SHA: 17278d2 fixes i{, i}, i), etc. SHA: 209e0d3 fixes iB, ib, etc., and issue #7

justinmk closed this Jun 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment