After expanding a snippet and changing some words, I'd like to be able to undo the whole snippet expanded it with some command (not uuuuu). deoplete#undo_completion() does not work.
I think a good way to do this would be to save the position from :changelist in some variable and then go back in the undotree to that point. If it's a bit complicated to implement, I am happy to help!
After expanding a snippet and changing some words, I'd like to be able to undo the whole snippet expanded it with some command (not uuuuu).
deoplete#undo_completion()
does not work.I think a good way to do this would be to save the position from
:changelist
in some variable and then go back in the undotree to that point. If it's a bit complicated to implement, I am happy to help!