On 03/11/11 05:54, Дмитрий Франк wrote:
:winpos <x-position> <y-position> "Set the x,y position
of the gVim Window when gVim starts
:set lines=<integer> "Set the number of rows that the
gVim window has
:set columns=<integer> "Set the number of columns that
the gVim window has
i tried to use these variables, but there's anyway some troubles.
when gvim is opened in my secondary monitor and it is maximized, command
":winpos" returns "-1684 -4".
When i try to type ":winpos -1684 -4", gvim's window appears at the
right place for a very little time (a part of second), and then
instantly moves to main monitor, and ":winpos" returns "0 0" then. So,
winpos is unfortunately unable to set negative values.
How can i fix this?
Thanks.
Hmm, IIUC Vim doesn't know about multiple monitors, or about the fact
that negative coordinates might be meaningful: so when it moves or
resizes the Vim screen (moves with :winpos, resizes by changing 'lines'
'columns' or, in gvim, 'guifont') it will try to adjust its coordinates
so that:
0 <= Xmin < Xmax <= Width
0 <= Ymin < Ymax <= Height
where Xmin, Xmax, Ymin, Ymax refer to the Vim screen, Width and Height
to your monitor. This will of course backfire if you try to move the Vim
screen to a secondary monitor, especially if it is located above or to
the left of the primary.
You could try naming your topleftmost monitor the primary, but only
experiment will tell if it will work.
Best regards,
Tony.
--
Fudd's First Law of Opposition:
Push something hard enough and it will fall over.
--
You received this message from the "vim_dev" 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