Paul wrote:
On Monday, 30 July, 2012 at 16:27:36 BST, Charles Campbell wrote:
Please try ZoomWin v25b, available from my website as
http://www.drchip.org/astronaut/vim/index.html#ZOOMWIN . This new
version has 'diff' included in its list of "local options".
After using <c-w>o on a window obtained via vcs (either the local or
repository one), :q works quietly (when no changes have been made, of
course). Applying <c-w> a second time restores the difference display
as expected.
However, using <c-w>o is not quite the same as quitting a vcs window;
hence the diff mode will be retained for the single open window.
I've just tried that, and don't see any difference in behaviour. I see
the change message in ZoomWin.txt, but from reading that, I don't
think it will solve the problem. Initially, when a file is opened in
vim, diff is off. VCSVimDiff then sets diff on. When <c-w>o is
entered, ZoomWin will see that the current mode is diff=on, and hide
other windows. ZoomWin doesn't know that I want diff to be off when I
pressed <c-w>o, because it was already on before ZoomWin did anything.
Maybe ZoomWin should _always_ set diff=off when displaying just one
file. I can't think of a situation where I'd want to have diff=on when
viewing just one file, but you never know.
I'm afraid that I disagree -- ZoomWin should "zoom" onto the designated
window; its appearance should not change (other than size, of course).
You can see the difference visibility effect directly via the following
commands with vim:
What's happening:
* make two test files: file1, file2 that contain a difference
* use vimdiff to display both windows
* set hidden on one or both of the windows
* apply ":q" to one of the windows
You'll observe that the differences are still displayed.
Regards,
Chip Campbell
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php