Skip to content

What setting causes the cursor to jump into the next pair rather than create a new pair? #40

Answered by LunarWatcher
pooriajr asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the late response - this managed to slip through my stack of stuff to do (been getting a lot of emails for a couple days, and this managed to slip my mind. My bad).

The option for this is g:AutoPairsSearchCloseAfterSpace. That said, there's an underlying bug here - with it disabled, it outputs " "foo". This is a symptom of the actual problem; for whatever reason, the plugin is registering an imbalance that isn't there. That's probably why it's jumping too, but I'm not entirely sure. The jump logic for when open == close relies on simply guessing what's an open quote and what's a close quote, and what's caused by an imbalance. Could probably be improved, but this falls into the c…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@LunarWatcher
Comment options

@pooriajr
Comment options

@LunarWatcher
Comment options

@LunarWatcher
Comment options

@pooriajr
Comment options

Answer selected by pooriajr
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