I originally posted this on vim_use, but have had no responses.  I
have since discovered other cases which result in the same behaviour.

Vim 7.2.
Included patches: 1-266
Win XP SP3

This has been reproduced using:
gvim -N -u NONE -U NONE --noplugin test.txt

I have a laptop and a monitor.
I use the Windows feature which allows me to "extend" my screen to the
other monitor.

I have been doing this for some time and I always have my extended
monitor to the "right" side of my laptop (which is the main screen, it
has the taskbar).

Anyway, I just moved my extended screen so that it is above my
existing monitor instead of to the right of it.

Now I have noticed a strange behaviour.

If I move Vim to be in the extended monitor above my laptop, then I
have these values:

:echo getwinposx() getwinposy()
-15 -1183

If I run this command:
:split

My current window is split horizontally.
Everything is good.

But, if I run this command:
:vertical split

Then my Vim snaps back into my laptop screen and splits vertically.

:echo getwinposx() getwinposy()
0 0

So, I don't see any reason why adding the "vertical" keyword should
change the behaviour.
Of course, I don't want it to do this either since toggling the
Taglist plugin does a vertical split so this has become a real pain in
the butt.


Since my original post to vim_use, I have also noticed the same thing
happen when I run this map:
n  <C-Up>      * :silent! let &guifont = substitute(&guifont,
':h\zs\d\+', '\=eval(submatch(0)+1)', '')<CR>

This is like Firefox, if I hit CTRL-UP, I increase the fontsize inside
Vim.  Again useful when switching between two different sized /
resolution monitors.

Changing the guifont, has the same result as :vertical, it causes Vim
to shift back to the original monitor.


I have work around for all these issues with other maps to change the
location back again, but this appears to be a bug.  Can anyone else
confirm?

TIA,
Dave

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui