LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: downcloud

在gvim里输入中文失败

[复制链接]
发表于 2003-10-29 22:41:55 | 显示全部楼层
最初由 lang2 发表
> 请问,在~/.gvimrc应该如何设定所需要的字体呢?
:set gfn=bla
You need to use '\' to escape the space where needed.


谢谢!!还是不行啊。


这是一个什么样的字体啊?我的似乎没有?提示invalid fonts。
发表于 2003-10-29 22:45:46 | 显示全部楼层

这一版本的vim是gtk+ 2的吗?

谢谢!

是不是不能直接用Xft2的字体啊?
发表于 2003-10-29 22:52:20 | 显示全部楼层
Sorry. I thought you could see Chinese already and
didn't really looked at the :version output. Unfortunately
your gvim was compiled with GTK1.x GUI, which is bad,
well, for displaying Chinese anway. So please recompile
gvim or get a version with GTK2 GUI. If you happen to
be running Slackware 9.1, simply install the xvim
package.

No. The 'bla' in :set gfn=bla isn't a actually font name,
it is just a placeholder for you to replace with your own
font name, e.g. :set gfn=MS\ Hei

Don't know about the G_BROKEN_XXXX business.
发表于 2003-10-29 23:02:25 | 显示全部楼层
谢谢!!

我现在安装的就是slackware9.1,并且使用的也是xvim的包啊,要不然也就不会有gvim了。
发表于 2003-10-29 23:04:10 | 显示全部楼层
我的确是看了:version的输出,因为其中有乱码,所以我就从vim中把:version输出来贴到这里。我比较了一下两者,在我能看见的范围内是一样的。
发表于 2003-10-29 23:36:58 | 显示全部楼层
> 大型版本 使用 GTK 图型界面.

That means it is not built with GTK gui.
hmmmm. I think I was wrong there. Maybe I was
running another version of gVim instead of the
Slackware stock one.
Anyways, you will need to have a Vim that is
built with the GTK2 GUI. If you don't want to
compile yourself, check out the xvim package from
linuxpackgaes.net
http://www.linuxpackages.net/details.php?name=xvim
发表于 2003-10-29 23:46:02 | 显示全部楼层

Thanks!

Well, I will get this one and test it again.

Thank you very much for your kindly help!
发表于 2003-10-29 23:56:57 | 显示全部楼层

升级一下vim和xvim就好了。

我不知道是否两个都要升级,反正我是都做了。现在好了,中文也不用任何设置就可以了。一如在win下用gvim一样。

多谢lang2兄的大力帮助。

谢谢!!
发表于 2003-10-30 00:30:31 | 显示全部楼层
:-)
Happy vimming!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表