Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gvim] width and height of the main window.

26 views
Skip to first unread message

Sam Qasbah

unread,
May 3, 2013, 11:28:20 AM5/3/13
to
Hallo.

I'm an absolute beginner with vi:vim, I'm trying to learn.

How can I set gvim so that when I call the program the main window is 82
chars wide and 45 chars high?

Many thanks.

Kenny McCormack

unread,
May 3, 2013, 11:51:21 AM5/3/13
to
In article <5183d79e$0$1600$5fc...@news.tiscali.it>,
set lines=45 columns=82

--
Religion is regarded by the common people as true,
by the wise as foolish,
and by the rulers as useful.

(Seneca the Younger, 65 AD)

Bob Harris

unread,
Jun 11, 2013, 7:23:39 PM6/11/13
to
In article <km0mdp$f8t$1...@news.xmission.com>,
gaz...@shell.xmission.com (Kenny McCormack) wrote:

> In article <5183d79e$0$1600$5fc...@news.tiscali.it>,
> Sam Qasbah <s...@none.no> wrote:
> >Hallo.
> >
> >I'm an absolute beginner with vi:vim, I'm trying to learn.
> >
> >How can I set gvim so that when I call the program the main window is 82
> >chars wide and 45 chars high?
> >
> >Many thanks.
>
> set lines=45 columns=82

Another approach, assuming your gvim is X11 based.

gvim -geometry 82x45 file.to.edit

You can even specify the position on the screen via -geometry

gvim -geometry 82x45+60+200 # WIDTHxHEIGTH+XCORD+YCORD
0 new messages