On 09/05/09 01:20, Mun Johl wrote:
>
> Hi,
>
> I'm running gvim under Red Hat Enterprise Linux 5.3 and in KDE 3.5 . I
> am having a weird problem such that if I maximize the gvim window, I
> cannot get it to go back to the previous size. For comparison purposes,
> I've tried to do the same thing on konsole and mrxvt terminals (and
> other apps), and they all will revert back; thus, my call for help on
> this list.
>
> On a related note, is there a way to specify the geometry of the gvim
> window from within gvim? I can set lines and columns, but can I affect
> the position of the window as well? If so, then I'll set up a map to
> workaround the issue for the time being.
>
> Thanks in advance.
>
To set the window position (or get it from the keyboard):
:help :winpos
:help 31.4
To get the window position in a script:
:help getwinposx()
:help getwinposy()
Note that if the info is not available, the functions will return -1,
which (according to a few experiments I just did) will be accepted by
the ex-command as "overshoot the left/top margin by one pixel".
Best regards,
Tony.
--
A total abstainer is one who abstains from everything but abstention,
and especially from inactivity in the affairs of others.
-- Ambrose Bierce, "The Devil's Dictionary"
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---