Please document limitations of redo/undo/repeat #63

Open
jordwalke opened this Issue Sep 18, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@jordwalke

Most of these kinds of plugins break or ruin one of those features. It's nice to know exactly what features of vim to expect to be broken.

@dag

This comment has been minimized.

Show comment Hide comment
@dag

dag Jun 14, 2013

In my testing, undo and redo works but the brackets and quotes are considered a separate change. i'hello<Esc>u gives you '' and another u undos both quotes; redoing then gets you the quotes back and another redo gets you 'hello'. Maybe for the same reason, repeat is broken: a'hello'<Esc>. gets you 'hellohello'; ie. the last change is repeated, which with smartinput is only the hello.

Other plugins like vim-autoclose and AutoClose get repeat right but break undo in some cases; specifically I tested adding a newline as part of the change, and it repeated fine, and undo worked, until I undid the last one and I ended up with two empty lines in the buffer, and Vim claiming I was at the oldest change and the [new] buffer was non-modified.

dag commented Jun 14, 2013

In my testing, undo and redo works but the brackets and quotes are considered a separate change. i'hello<Esc>u gives you '' and another u undos both quotes; redoing then gets you the quotes back and another redo gets you 'hello'. Maybe for the same reason, repeat is broken: a'hello'<Esc>. gets you 'hellohello'; ie. the last change is repeated, which with smartinput is only the hello.

Other plugins like vim-autoclose and AutoClose get repeat right but break undo in some cases; specifically I tested adding a newline as part of the change, and it repeated fine, and undo worked, until I undid the last one and I ended up with two empty lines in the buffer, and Vim claiming I was at the oldest change and the [new] buffer was non-modified.

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