Konfekt / FastFold

Speed up Vim by updating folds only when called-for.
708 stars 24 forks source link

s:WinDo: remove "jump" from "scrollopt" for "windo" #41

Closed blueyed closed 8 years ago

blueyed commented 8 years ago

The "jump" in "scrollopt" (set by default) might cause windows with "scrollbind" to jump around when ":windo" is being called.

This is especially relevant for "git mergetool --tool=vimdiff".

This happens with both Vim (7.4.1910) and Neovim.

blueyed commented 8 years ago

I added some small optimization and the usage of "noautocmd" for restoring the windows. The latter might be its own PR, but to avoid conflicts I've added it here.

Konfekt commented 8 years ago

Thanks! Looks good to me, so merging into master. Let's see how it goes!