On Feb 19, 2011, at 8:22 PM, Bee wrote: > MacVim's :winpos works differently > > MacVim seems to measure the top left from the bottom left, > whereas all others measure from the top left. > > Why the difference? > > I positioned all the following approximately the same, top left, on a > 1024x768 display: > > MacOSX compiled with MacPorts > vim-app 7.3.107 X 0, Y 22 > vim 7.3.107 no display, but :winpos 0 0 works > MacVim 7.3-53 X 0, Y 746 Note: 768 - 746 = 22 > > WinXP gvim 7.3.107 X 0, Y 0 > > Linux gvim 7.3.89 X 0, Y 0 > Linux vim 7.3.89 no display, but :winpos 0 0 works > > see gui.txt or :help winpos > > :winp[os] > Display current position of the top left corner of the GUI vim > window in pixels. Does not work in all versions. > > :winp[os] {X} {Y} *E466* > Put the GUI vim window at the given {X} and {Y} coordinates. > The coordinates should specify the position in pixels of the > top left corner of the window. Does not work in all versions. > Does work in an (new) xterm |xterm-color|. > When the GUI window has not been opened yet, the values are > remembered until the window is opened. The position is > adjusted to make the window fit on the screen (if possible).
Thanks for the report. I guess I just implemented it wrong (seeing as I never use this feature). A patch would be more than welcome! (And not too hard to write.) Björn -- You received this message from the "vim_mac" 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