vim-parinfer
vim-parinfer copied to clipboard
Attempt to fix borked undo (user gets caught in an undo loop)
This needs the latest Vim (8.1) with patch 245.
The idea is to invoke parinfer only during regular edits but not after an undo since invoking parinfer after an undo creates a branch in the undo tree causing previous changes to not be easily reachable and the user to be caught in an undo loop.
Not sure if the try... undojoin
thing is the best approach - happy to use a better alternative if there is one.
I almost stopped using parinfer because of this problem... I am going to give it a go, and confirm if this actually fixes the problem.
This is really old and I haven't been clojur-ing for a while. Should I close this?
yea this bug really is a pain. I'm actually favoring using https://github.com/eraserhd/parinfer-rust now and it has similar issues with undo. Really not sure how best to address but could give this a test run