OS: Mac OS X 10.10.3 MacVim: 7.4.712
操作系统:Mac OS X 10.10.3 MacVim:7.4.712
I am trying to use MacVim to write LaTeX instead of Sublime Text. So I set the font "Lucida Grande" from menu of MacVim but it looked strange:
我正在尝试使用MacVim编写LaTeX而不是Sublime Text。所以我从MacVim的菜单中设置字体“Lucida Grande”,但它看起来很奇怪:
This is what Lucida Grande looks like in Sublime Text:
这就是Lucida Grande在Sublime Text中的样子:
Then I set "Helvetica" in MacVim and it looks like:
然后我在MacVim中设置“Helvetica”,它看起来像:
It seems that MacVim tries to display fonts in mono but this is not what I want. How could I set the font properly in MacVim just like what Sublime Text does?
似乎MacVim尝试以单声道显示字体,但这不是我想要的。我怎样才能像在Sublime Text中那样在MacVim中正确设置字体?
1 个解决方案
#1
While GVIM / MacVim can use proportional fonts (on certain platforms), there's no way around the screen-cell based addressing in Vim; it's a fundamental concept (taken from the terminal), and many features (like blockwise selections) depend on it.
虽然GVIM / MacVim可以使用比例字体(在某些平台上),但在Vim中无法绕过基于屏幕单元的寻址;它是一个基本概念(取自终端),许多功能(如块状选择)依赖于它。
So, you have to live with the fact that an i
will take as much horizontal space as a W
, and choose a corresponding (monospaced) font accordingly. This way, your editor will look much better :-)
所以,你必须忍受这样一个事实,即我将采用与W一样多的水平空间,并相应地选择相应的(等宽字体)字体。这样,您的编辑器看起来会更好:-)
#1
While GVIM / MacVim can use proportional fonts (on certain platforms), there's no way around the screen-cell based addressing in Vim; it's a fundamental concept (taken from the terminal), and many features (like blockwise selections) depend on it.
虽然GVIM / MacVim可以使用比例字体(在某些平台上),但在Vim中无法绕过基于屏幕单元的寻址;它是一个基本概念(取自终端),许多功能(如块状选择)依赖于它。
So, you have to live with the fact that an i
will take as much horizontal space as a W
, and choose a corresponding (monospaced) font accordingly. This way, your editor will look much better :-)
所以,你必须忍受这样一个事实,即我将采用与W一样多的水平空间,并相应地选择相应的(等宽字体)字体。这样,您的编辑器看起来会更好:-)