m4xshen/autoclose.nvim

Changes that use autoclose break single-repeat (dot repeat)

mikehaertl opened this issue · 1 comments

When a text is inserted or changed and a autocloase pair is inserted during that operation, the operation can no longer be dot repeated with . (:help single-repeat).

For example if I would like to replace the word abc with (xyz) I could move the cursor over the word, then type ciw(xyz)<ESC> and could then repeat this operation on any other abc by pressing ..

With autoclose.vim enabled I get xyzabc when repeating.

Thanks, it now works as long as I'm on the same line. It still breaks if you enter something like (<CR>abcd, though. But that's probably much harder to fix and also not used that often.