分页: 1 / 1

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

发表于 : 2010-06-05 23:04
nickleeh
在Win 7 下, vim 字体粗细不均匀,使用的是微软雅黑。在Emacs下显示正常,请问vim需要设置什么吗?

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

发表于 : 2010-06-07 8:53
nickleeh
pocoyo 写了:emacs下能上个图么 我的超模糊。

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

发表于 : 2010-06-07 8:57
leeaman
vim用的是终端字体设置吧

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

发表于 : 2010-06-07 14:15
nickleeh
leeaman 写了:vim用的是终端字体设置吧
谢谢!

我是Windows 7 + gvim
使用菜单更改字体,也是粗细不都均匀!

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

发表于 : 2010-06-07 15:14
leeaman
配置文件指定字体行不?

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

发表于 : 2010-06-07 16:08
nickleeh
leeaman 写了:配置文件指定字体行不?
不行啊!

代码: 全选

		:set gfn=Yahei_Mono:h16:cGB2312
字体不均匀!

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

发表于 : 2010-06-08 9:08
nickleeh
问题解决了!

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

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

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

即:

代码: 全选

:set gfn?

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

(我是在windows 下使用gvim的)

多谢了!

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

发表于 : 2010-06-08 12:27
lilydjwg
nickleeh 写了: 另外,请教如何复制gvim的命令输出?

即:

代码: 全选

:set gfn?

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

(我是在windows 下使用gvim的)

多谢了!
Windows很不好用的哦,:help :redir 自己看看吧。

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

发表于 : 2010-06-08 15:04
nickleeh
谢谢楼上各位!

代码: 全选

							*: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自己的命令结果怎么输出呢?还望明示!

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

发表于 : 2010-06-08 22:46
nickleeh
弄明白了!

首先,在.vimrc中加入:

代码: 全选

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