Redo is broken after save.
Closed this issue · 2 comments
joecrayne commented
Without the plugin, the following works:
- undo an action (key u)
- save the file (:w)
- redo the action (key ^r)
With the plugin installed, the last step does not work. Instead I see "Already at newest change"
nbouscal commented
Yeah, I'm aware of this issue but don't know of any way to fix it. Essentially, running stylish-haskell on the file contents puts us into a different branch of vim's undo tree. You should be able to redo by navigating back to the old branch of the undo tree (plugins like Gundo come in handy here).
expipiplus1 commented
Apparently there is a solution here: fatih/vim-go#40
https://github.com/fatih/vim-go/blob/master/autoload/go/fmt.vim#L44