I want to create a command that will place my gvim window to a different "x" location on my screen while maintaining the "y" position.
I do this in my _gvimrc by calling
winpos 319 16
I want to create a function
WinRight that will put my window on the right side of the screen, but this doesn't work:
function! WinRight() let ypos=getwinposy() winpos 1241 ypos endfunction
:call WinRight(), I get "E466 :winpos requires two number arguments".
The function works if I substitute a number for
ypos. Why doesn't my use of the variable
ypos work here though?