Re: [SOLVED] [dwm] Gvim size problem
On Thu, 16 Apr 2009 23:12:15 -0700 Amit Uttamchandani wrote: > When opening a new tab the command input disappears, setting ghr=5 > fixes it in my set up. > Yes, you are right. I don't use tabs though, so didn't think of testing that :-). However, I see that when the interface changes like tabs or horizontal scrollbar, one may need to float unfloat to get gvim drawn correctly. So just experiment with the ghr to fit your setup the best :-) Preben
Re: [SOLVED] [dwm] Gvim size problem
On Fri, 17 Apr 2009 22:25:46 +0800 bill lam wrote: > You may try adding > > set lines=200 columns=200 > > after the line that set gfn. It doesn't matter these values are > larger than your screem since it will resize itself to the maximum > allowable lines and columns. No, they won't. At least not for me. Preben
Re: [SOLVED] [dwm] Gvim size problem
On Fri, 17 Apr 2009, Dusan wrote: > On Fri, 17 Apr 2009 12:57:53 +0200 (CEST) > "Preben Randhol" wrote: > > > > Here it is. Gvim is on the left -- there is huge vertical stripe on > > > the right part of it. When I do float-unfloat gvim takes whole area > > > and works well after that. I use 50:50 split. > > > > What happens if you run: gvim -U NONE -u NONE > > > > This starts gvim without loading any setup you have. > > > > It is not ghr nor lines that will fix your problem, they are for the > > vertical space and not horizontal as seem to be your problem. > > > > type ":set columns" > > in vim before and after you float unfloat the gvim to see if this > > changes. > > > > HTH > > > > Preben > > > > > > 104 first time, 119 after gvim gets real dimensions. > > -u NONE works so I tested what makes problem in my .vimrc. It was font > definition :( > > set guifont was the problem. I don't get it but Envy Code font makes > this problem. You may try adding set lines=200 columns=200 after the line that set gfn. It doesn't matter these values are larger than your screem since it will resize itself to the maximum allowable lines and columns. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 唐詩291 杜牧 泊秦淮 煙籠寒水月籠沙 夜泊秦淮近酒家 商女不知亡國恨 隔江猶唱後庭花
Re: [SOLVED] [dwm] Gvim size problem
On Fri, 17 Apr 2009 12:57:53 +0200 (CEST) "Preben Randhol" wrote: > > Here it is. Gvim is on the left -- there is huge vertical stripe on > > the right part of it. When I do float-unfloat gvim takes whole area > > and works well after that. I use 50:50 split. > > What happens if you run: gvim -U NONE -u NONE > > This starts gvim without loading any setup you have. > > It is not ghr nor lines that will fix your problem, they are for the > vertical space and not horizontal as seem to be your problem. > > type ":set columns" > in vim before and after you float unfloat the gvim to see if this > changes. > > HTH > > Preben > > 104 first time, 119 after gvim gets real dimensions. -u NONE works so I tested what makes problem in my .vimrc. It was font definition :( set guifont was the problem. I don't get it but Envy Code font makes this problem. I will investigate more. Thanks all.
Re: [SOLVED] [dwm] Gvim size problem
> Here it is. Gvim is on the left -- there is huge vertical stripe on the > right part of it. When I do float-unfloat gvim takes whole area and > works well after that. I use 50:50 split. What happens if you run: gvim -U NONE -u NONE This starts gvim without loading any setup you have. It is not ghr nor lines that will fix your problem, they are for the vertical space and not horizontal as seem to be your problem. type ":set columns" in vim before and after you float unfloat the gvim to see if this changes. HTH Preben
Re: [SOLVED] [dwm] Gvim size problem
On Fri, 17 Apr 2009 16:12:10 +0800
bill lam wrote:
> On Fri, 17 Apr 2009, Dusan wrote:
> > Thanks, tried this too. Does not work either. Can you attach
> > your .vimrc / .gvimrc please?
>
> I do not use .gvimrc, relevant portion of .vimrc
>
> if has("gui_running")
> " this line must after gfn and inside gui_running
>set lines=200 columns=124
> " right and bottom srollbars
> set guioptions+=rb
> " tab interface
> set guioptions+=em
> " disable popup dialog
> set guioptions+=c
> endif
>
>
> What exactly is your problem, can you post a screenshot?
>
Here it is. Gvim is on the left -- there is huge vertical stripe on the
right part of it. When I do float-unfloat gvim takes whole area and
works well after that. I use 50:50 split.<>
Re: [SOLVED] [dwm] Gvim size problem
On Fri, 17 Apr 2009, Dusan wrote:
> Thanks, tried this too. Does not work either. Can you attach
> your .vimrc / .gvimrc please?
I do not use .gvimrc, relevant portion of .vimrc
if has("gui_running")
" this line must after gfn and inside gui_running
set lines=200 columns=124
" right and bottom srollbars
set guioptions+=rb
" tab interface
set guioptions+=em
" disable popup dialog
set guioptions+=c
endif
What exactly is your problem, can you post a screenshot?
--
regards,
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩119 王維 酬張少府
晚年惟好靜 萬事不關心 自顧無長策 空知返舊林
松風吹解帶 山月照彈琴 君問窮通理 漁歌入浦深
Re: [SOLVED] [dwm] Gvim size problem
On Fri, 17 Apr 2009 11:50:44 +0800 bill lam wrote: Thanks, tried this too. Does not work either. Can you attach your .vimrc / .gvimrc please? > On Thu, 16 Apr 2009, Dusan wrote: > > On Thu, 16 Apr 2009 13:54:45 +0200 (CEST) > > "Preben Randhol" wrote: > > > > Does not help :( > > may try adding: > > set lines=200 > > > > > > > Similar experience in the past but seem fixed now. I guess it > > > > should be a gvim problem. You may test by comparing with other > > > > gtk based text editors such as geany or gedit. > > > > > > > > It should be `lines' not set correctly. try > > > > :set lines? > > > > > > > > for gvim, lines depends on both gfn and window height. > > > > > > I see. "set lines" report 34 when Gvim is opened and when it is > > > refreshed (by using one of the workarounds mentioned here) "set > > > lines" report 37. > > > > > > So I search around in the vim help files and found out in the end > > > that the 'guiheadroom' is set to 50 by default. This is subtracted > > > from window height. > > > > > > But by adding: > > > > > > set ghr=0 > > > > > > to .gvimrc, gvim will use the whole height and the problem goes > > > away! > > > > > > So not a dwm problem after all... Hope it works for others too. > > > I use vim 7.2.79 > > > > > > HTH > > > > > > Preben > > > > > > > > > > > > > > > > > > > > > >
Re: [SOLVED] [dwm] Gvim size problem
On Thu, 16 Apr 2009 11:23:35 -0700 Amit Uttamchandani wrote: > On Thu, 16 Apr 2009 13:54:45 +0200 (CEST) > "Preben Randhol" wrote: > > [snip] > > > > > But by adding: > > > > set ghr=0 > > > > Thank you! Finally this issue is solved. Using gvim 7.2.130 here. > > Amit > When opening a new tab the command input disappears, setting ghr=5 fixes it in my set up.
Re: [SOLVED] [dwm] Gvim size problem
On Thu, 16 Apr 2009, Dusan wrote: > On Thu, 16 Apr 2009 13:54:45 +0200 (CEST) > "Preben Randhol" wrote: > > Does not help :( may try adding: set lines=200 > > > > Similar experience in the past but seem fixed now. I guess it > > > should be a gvim problem. You may test by comparing with other gtk > > > based text editors such as geany or gedit. > > > > > > It should be `lines' not set correctly. try > > > :set lines? > > > > > > for gvim, lines depends on both gfn and window height. > > > > I see. "set lines" report 34 when Gvim is opened and when it is > > refreshed (by using one of the workarounds mentioned here) "set > > lines" report 37. > > > > So I search around in the vim help files and found out in the end > > that the 'guiheadroom' is set to 50 by default. This is subtracted > > from window height. > > > > But by adding: > > > > set ghr=0 > > > > to .gvimrc, gvim will use the whole height and the problem goes away! > > > > So not a dwm problem after all... Hope it works for others too. > > I use vim 7.2.79 > > > > HTH > > > > Preben > > > > > > > > > > > > > -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 唐詩275 劉方平 月夜 更深月色半人家 北斗闌干南斗斜 今夜偏知春氣暖 蟲聲新透綠窗沙
Re: [SOLVED] [dwm] Gvim size problem
ooo!, thanks a lot for the tip. I always wanted to solve that. (Vim version 7.1.138) On Thu, 16 Apr 2009 13:54:45 +0200, Preben Randhol wrote: I see. "set lines" report 34 when Gvim is opened and when it is refreshed (by using one of the workarounds mentioned here) "set lines" report 37. So I search around in the vim help files and found out in the end that the 'guiheadroom' is set to 50 by default. This is subtracted from window height. But by adding: set ghr=0 to .gvimrc, gvim will use the whole height and the problem goes away! So not a dwm problem after all... Hope it works for others too. I use vim 7.2.79 HTH Preben -- Ricardo
Re: [SOLVED] [dwm] Gvim size problem
On Thu, 16 Apr 2009 13:54:45 +0200 (CEST) "Preben Randhol" wrote: [snip] > > But by adding: > > set ghr=0 > Thank you! Finally this issue is solved. Using gvim 7.2.130 here. Amit
Re: [SOLVED] [dwm] Gvim size problem
On Thu, 16 Apr 2009 13:54:45 +0200 (CEST) "Preben Randhol" wrote: Does not help :( > > Similar experience in the past but seem fixed now. I guess it > > should be a gvim problem. You may test by comparing with other gtk > > based text editors such as geany or gedit. > > > > It should be `lines' not set correctly. try > > :set lines? > > > > for gvim, lines depends on both gfn and window height. > > I see. "set lines" report 34 when Gvim is opened and when it is > refreshed (by using one of the workarounds mentioned here) "set > lines" report 37. > > So I search around in the vim help files and found out in the end > that the 'guiheadroom' is set to 50 by default. This is subtracted > from window height. > > But by adding: > > set ghr=0 > > to .gvimrc, gvim will use the whole height and the problem goes away! > > So not a dwm problem after all... Hope it works for others too. > I use vim 7.2.79 > > HTH > > Preben > > > > >
Re: [SOLVED] [dwm] Gvim size problem
> Similar experience in the past but seem fixed now. I guess it should > be a gvim problem. You may test by comparing with other gtk based > text editors such as geany or gedit. > > It should be `lines' not set correctly. try > :set lines? > > for gvim, lines depends on both gfn and window height. I see. "set lines" report 34 when Gvim is opened and when it is refreshed (by using one of the workarounds mentioned here) "set lines" report 37. So I search around in the vim help files and found out in the end that the 'guiheadroom' is set to 50 by default. This is subtracted from window height. But by adding: set ghr=0 to .gvimrc, gvim will use the whole height and the problem goes away! So not a dwm problem after all... Hope it works for others too. I use vim 7.2.79 HTH Preben
