Dear Vim developers, so do you plan to allow negative values for :winpos in future?
7 ноября 2011 г. 8:42 пользователь Дмитрий Франк <[email protected]>написал: > > 3 ноября 2011 г. 19:58 пользователь Walt Elam <[email protected]> написал: > > >> >> 2011/11/3 Дмитрий Франк <[email protected]> >> >>> >>> :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? >>> >>> Ah, I see your problem now. Have you tried setting winpos in the >> opposite way? Instead of a negative value try using the equivalent positive >> value. Also, the y axis origin should still be the top of the monitor so >> I'm not entirely sure how it is returning a negative y-value when issuing >> :winpos. >> >> Example: two monitors that are 1680x1050, and you want the position to be >> equivalent to :winpos -4 -4 >> >> x: 2(1680) + <x-position> >> y: <y-position> >> >> so try >> >> :winpos 3356 -4 >> >> Again, I'm very confused about the y-position, having a negative >> y-position indicates that the GVim menu bar would be slightly off of the >> screen which doesn't seem useful, especially by only 4 pixels. >> >> In addition, I just tested this on a single monitor machine and setting >> the x and y values higher than the resolution successfully put the GVim >> window off of the screen, so I'm hoping it will essentially "wrap-around" >> for you. >> > > Hi. > > Unfortunately, this not helped: setting the x and y values higher than the > resolution successfully really put the GVim window off of the screen, but i > can't make Gvim put itself on the *left* monitor. > about -4 -4 : i'm sure this is Windows XP issue. When app is maximized, > there's no border shown, and this border is 4 pixels width. I need to test > it on Linux machine. > > By the way, you successfully guessed: i have two monitors > exactly 1680x1050 :) and my right monitor is primary, left monitor is > secondary. So, i still can't put Gvim window to the *left* monitor, because > of (0; 0) point is a left-top corner of right monitor. > > >> Thanks. >>> >>> [image: pic.gif] >>> >>> >>>> >>>>> It could be very useful if Gvim on Windows remind it too. >>>>> >>>>> >>>>> -- >>>>> 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 >>>>> >>>> >>>> -- >>>> 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 >>>> >>> >>> -- >>> 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 >>> >> >> -- >> 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 >> > > -- 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
