nbouscal/vim-stylish-haskell

Redo is broken after save.

Closed this issue · 2 comments

Without the plugin, the following works:

  1. undo an action (key u)
  2. save the file (:w)
  3. redo the action (key ^r)

With the plugin installed, the last step does not work. Instead I see "Already at newest change"

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).