vim-stylish-haskell
vim-stylish-haskell copied to clipboard
The same buffer in different windows loses position
If I have the same file in two windows and I save in one window the other window loses its position.
To reproduce
-
vim Foo.hs
-
:split
-
:w
- Observe that the non-active split has had its position changed to the bottom of the file
Here's it in action: https://asciinema.org/a/7ui2mgim7pmqinjb7fzqbvqdn
It's possible that this, #4 and #7 could be fixed by generating a patch and applying that, instead of replacing the buffer.
According to @krux02 here https://github.com/rhysd/vim-clang-format/issues/24 autoread
could be a solution.
This looks like a relevant patch for gofmt https://github.com/fatih/vim-go/commit/99a1732e40e3f064300d544eebd4153dbc3c60c7