vim-stylish-haskell icon indicating copy to clipboard operation
vim-stylish-haskell copied to clipboard

The same buffer in different windows loses position

Open expipiplus1 opened this issue 7 years ago • 3 comments

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

expipiplus1 avatar Jun 08 '17 10:06 expipiplus1

It's possible that this, #4 and #7 could be fixed by generating a patch and applying that, instead of replacing the buffer.

expipiplus1 avatar Jun 08 '17 10:06 expipiplus1

According to @krux02 here https://github.com/rhysd/vim-clang-format/issues/24 autoread could be a solution.

expipiplus1 avatar Jun 08 '17 10:06 expipiplus1

This looks like a relevant patch for gofmt https://github.com/fatih/vim-go/commit/99a1732e40e3f064300d544eebd4153dbc3c60c7

expipiplus1 avatar Jun 08 '17 10:06 expipiplus1