请教: vim字体粗细不均匀?

Vim、Emacs配置和使用
回复
头像
nickleeh
帖子: 130
注册时间: 2008-08-06 13:24

请教: vim字体粗细不均匀?

#1

帖子 nickleeh » 2010-06-05 23:04

在Win 7 下, vim 字体粗细不均匀,使用的是微软雅黑。在Emacs下显示正常,请问vim需要设置什么吗?
头像
nickleeh
帖子: 130
注册时间: 2008-08-06 13:24

Re: 请教: vim字体粗细不均匀?

#2

帖子 nickleeh » 2010-06-07 8:53

pocoyo 写了:emacs下能上个图么 我的超模糊。
附件
emacs_yahei.jpg
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 请教: vim字体粗细不均匀?

#3

帖子 leeaman » 2010-06-07 8:57

vim用的是终端字体设置吧
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
nickleeh
帖子: 130
注册时间: 2008-08-06 13:24

Re: 请教: vim字体粗细不均匀?

#4

帖子 nickleeh » 2010-06-07 14:15

leeaman 写了:vim用的是终端字体设置吧
谢谢!

我是Windows 7 + gvim
使用菜单更改字体,也是粗细不都均匀!
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 请教: vim字体粗细不均匀?

#5

帖子 leeaman » 2010-06-07 15:14

配置文件指定字体行不?
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
nickleeh
帖子: 130
注册时间: 2008-08-06 13:24

Re: 请教: vim字体粗细不均匀?

#6

帖子 nickleeh » 2010-06-07 16:08

leeaman 写了:配置文件指定字体行不?
不行啊!

代码: 全选

		:set gfn=Yahei_Mono:h16:cGB2312
字体不均匀!
头像
nickleeh
帖子: 130
注册时间: 2008-08-06 13:24

Re: 请教: vim字体粗细不均匀?

#7

帖子 nickleeh » 2010-06-08 9:08

问题解决了!

更新字体为
Yahei_Consolas 1.12版本,一切正常了!

有同样问题的,推荐换新版字体!

另外,请教如何复制gvim的命令输出?

即:

代码: 全选

:set gfn?

我想把在vim底部输出的一串字符复制到.vimrc中,有办法吗?

(我是在windows 下使用gvim的)

多谢了!
头像
lilydjwg
论坛版主
帖子: 4258
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: 请教: vim字体粗细不均匀?

#8

帖子 lilydjwg » 2010-06-08 12:27

nickleeh 写了: 另外,请教如何复制gvim的命令输出?

即:

代码: 全选

:set gfn?

我想把在vim底部输出的一串字符复制到.vimrc中,有办法吗?

(我是在windows 下使用gvim的)

多谢了!
Windows很不好用的哦,:help :redir 自己看看吧。
头像
nickleeh
帖子: 130
注册时间: 2008-08-06 13:24

Re: 请教: vim字体粗细不均匀?

#9

帖子 nickleeh » 2010-06-08 15:04

谢谢楼上各位!

代码: 全选

							*:redi* *:redir*
:redi[r][!] > {file}	Redirect messages to file {file}.  The messages which
			are the output of commands are written to that file,
			until redirection ends.  The messages are also still
			shown on the screen.  When [!] is included, an
			existing file is overwritten.  When [!] is omitted,
			and {file} exists, this command fails.
			Only one ":redir" can be active at a time.  Calls to
			":redir" will close any active redirection before
			starting redirection to the new target.
			To stop the messages and commands from being echoed to
			the screen, put the commands in a function and call it
			with ":silent call Function()".
			An alternative is to use the 'verbosefile' option,
			this can be used in combination with ":redir".
			{not in Vi}
看了help文件,也没想出 来办法!

我知道
:r! shell_cmd
可以把shell命令结果输出到文件中。可是vim自己的命令结果怎么输出呢?还望明示!
头像
nickleeh
帖子: 130
注册时间: 2008-08-06 13:24

Re: 请教: vim字体粗细不均匀?

#10

帖子 nickleeh » 2010-06-08 22:46

弄明白了!

首先,在.vimrc中加入:

代码: 全选

set guioptions+=a
这样,用鼠标选中底部的命令行输出,就已经复制到剪切板,可以用p粘贴了!
回复