auto-pairs icon indicating copy to clipboard operation
auto-pairs copied to clipboard

Inserting closing bracket jumps to end of next pair

Open Cybolic opened this issue 5 years ago • 3 comments

Trying to add an ] at the cursor position shown here by | jumps to the next closing parenthesis (one char forward) instead of inserting ].

new Set([ ...data, value |);

Apart from disabling the plugin, I haven't found a way that lets me type the character. I've tried let g:AutoPairsFlyMode = 0, let g:AutoPairsMultilineClose = 0 and let g:AutoPairsWildClosedPair = 0 to no avail.

How do I make the plugin get out of the way for things like this?

Cybolic avatar Feb 10 '19 15:02 Cybolic

use let g:AutoPairsWildClosedPair = ''

jiangmiao avatar Feb 10 '19 16:02 jiangmiao

Thanks, that works. Would it make sense to change this default to something that doesn't interfere with the normal operation of insert mode?

Cybolic avatar Feb 10 '19 18:02 Cybolic

Hey I'm also having some issue with this and I'm wondering if the functionality conflicts/differs with that of the README?

Fly Mode will always force closed-pair jumping instead of inserting. ... Fly Mode is DISABLED by default.

If I'm reading this correctly, by default, when inserting a closing character (), }, ], .etc), said character should be inserted (as opposed to jumping to the next instance of that character). By default (with no config changes) this doesn't look to be the case.

Inserting a closing and disabling fly mode also doesn't seem to have any effect.

andyrichardson avatar Feb 25 '19 10:02 andyrichardson