From owner-freebsd-questions@FreeBSD.ORG Wed Jun 27 18:53:19 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 13D0A16A46B for ; Wed, 27 Jun 2007 18:53:19 +0000 (UTC) (envelope-from nlecic@EUnet.yu) Received: from smtpclu-5.eunet.yu (smtpclu-5.eunet.yu [194.247.192.230]) by mx1.freebsd.org (Postfix) with ESMTP id 7710813C468 for ; Wed, 27 Jun 2007 18:53:18 +0000 (UTC) (envelope-from nlecic@EUnet.yu) Received: from nyx.localhost (adsl-233-35.eunet.yu [213.198.233.35]) by smtpclu-5.eunet.yu (8.13.6/8.13.6) with ESMTP id l5RIqt3f026674; Wed, 27 Jun 2007 20:53:01 +0200 Message-Id: <200706271853.l5RIqt3f026674@smtpclu-5.eunet.yu> Date: Wed, 27 Jun 2007 20:53:19 +0200 From: Nikola Lecic To: Neil Gruending In-Reply-To: <4682AA68.4070004@gruending.net> References: <4681FFD7.60104@gruending.net> <200706271213.l5RCCvMn015478@smtpclu-1.eunet.yu> <4682AA68.4070004@gruending.net> X-Mailer: Claws Mail 2.9.2 (GTK+ 2.10.12; i386-portbld-freebsd6.2) X-Operating-System: FreeBSD 6.2-RELEASE X-Face: pbl6-.[$G'Fi(Ogs2xlXP-V6{3||$Y[LOYs&~GJoikj'cVjcFC[V7du;;0~6nO= [Vi2?uU1Pq~,=Adj@,T:|"`$AF~il]J.Nz#2pU',Y7.{B;m/?{#sO^Dvo$rnmY6] Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_SiSCSKylHK_giY6gfd9C/lQ" X-EUNET-AVAS-Milter-Version: 2.0.0 X-AVAS-Virus-Status: clean X-AVAS-Spamd-Symbols: BAYES_50,TW_GT,UNPARSEABLE_RELAY X-AVAS-Spam-Score: 0.1 Cc: freebsd-questions@freebsd.org Subject: Re: gvim can't find a valid font X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 18:53:19 -0000 --MP_SiSCSKylHK_giY6gfd9C/lQ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 27 Jun 2007 11:20:24 -0700 Neil Gruending wrote: > Nikola Lecic wrote: > > On Tue, 26 Jun 2007 23:12:39 -0700 > > Neil Gruending wrote: > >=20 > >> Hi, > >> > >> I'm having a problem trying to get gvim 7.0.224 working. Every > >> time I try to start it I get the following error: > >> > >> E665: Cannot start GUI, no valid font found=1B|16H=1B|8H=1B|4H=1B|31H > >> > >> and I get the console vim instead. I think I've messed up my xorg > >> fonts somehow after upgrading to 7.2. I followed all of the steps > >> in /usr/ports/UPGRADING, but I didn't have the xorg metaport > >> installed so I installed it after upgrading. The first time I > >> started it there was an error message that said I needed to run a > >> program in the fonts directory (I forget which one), but I'm > >> pretty sure I didn't fix the module path before running the > >> command. I'm using the terminal in Xfce 4.4.1 to try and start > >> gvim. > >> > >> Here's part of my xorg.conf (now) in /etc/X11 that seems to be > >> related to fonts: > >> [...] > >=20 > > Hello Neil, > >=20 > > This is strange because gVim uses built-in X fonts (i.e. 7x13) if > > can't find anything else; and your X is running normally, which > > couldn't be without any font available. So: > >=20 > > (1) 'xlsfonts' gives what? > >=20 > > (2) Could you please send here a relevant part of ~/.gvimrc? (Also > > try to start gVim without it.) > >=20 > > (3) How did you compile gVim, with WITH_GTK2, or? > >=20 > > It's certainly not related to your gVim problem, but as of your > > xorg.conf, do you have any special reason for commenting out RgbPath > > and Type1 FontPath? > >=20 > > Nikola Le=C4=8Di=C4=87 >=20 > Hi Nikola, >=20 > xlsfonts gives: > [...] Looks good, gVim's last choice (7x13) is there. > and here's my vimrc (running without a vimrc doesn't change the > error): > [...] Not ~/.vimrc, but ~/.gvimrc. However, I'd say this is window$ version, ('behave mswin' etc.). You should carefully rewrite this file. > I compiled gvim from ports with the default options I think. I'm not=20 > sure how to get the options used for compiling after installing a > port. You might want to recompile the port with gtk2 support, for example: # portupgrade -f -m 'WITH_GTK2=3Dyes' vim (BTW, your vim is 7.0.224, whilst the last version is 7.0.241 -- not a bad idea to upgrade your ports first and then to upgrade vim.) There is gvimrc example, /usr/local/share/vim/vim70/gvimrc_example.vim. You can copy that file to ~/.gvimrc and edit it. Additionally, I attached the stripped version of my gVim config (gvimrc-nikola). You will see there several if clausules for default font setting since the syntax depends on how you compiled vim. In your case (with default options), gVim should read "x11" section. > As for the RGBpath and Type1 font path, that's how xorg made the > file. Since I don't know much about configuring X, I figured it was > smarter than me and it knew what it was doing. Ok. So, (1) try to use gvimrc I sent (of course, check if you actually have fonts that are listed there), or try the official example; (2) try to upgrade vim, consider enabling gtk2 support (gVim will behave as a full gtk2 app then) (3) try to remove all old config files you have, including system-wide ones. ':version' should show you where they are. Nikola Le=C4=8Di=C4=87 --MP_SiSCSKylHK_giY6gfd9C/lQ Content-Type: application/octet-stream; name=gvimrc-nikola Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=gvimrc-nikola IiBBbiBleGFtcGxlIGZvciBhIGd2aW1yYyBmaWxlLgoiIFRoZSBjb21tYW5kcyBpbiB0aGlzIGFy ZSBleGVjdXRlZCB3aGVuIHRoZSBHVUkgaXMgc3RhcnRlZC4KIgoiIE1haW50YWluZXI6CUJyYW0g TW9vbGVuYWFyIDxCcmFtQHZpbS5vcmc+CiIgTGFzdCBjaGFuZ2U6CTIwMDEgU2VwIDAyCiIKIiBU byB1c2UgaXQsIGNvcHkgaXQgdG8KIiAgICAgZm9yIFVuaXggYW5kIE9TLzI6ICB+Ly5ndmltcmMK IgkgICAgICBmb3IgQW1pZ2E6ICBzOi5ndmltcmMKIiAgZm9yIE1TLURPUyBhbmQgV2luMzI6ICAk VklNXF9ndmltcmMKIgkgICAgZm9yIE9wZW5WTVM6ICBzeXMkbG9naW46Lm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