Powerline on Mac OS X not working as expected

2019-02-23 00:52发布

as the image show , after installing the powerline for vim some symbols work not so good.

as the image shows , after installing the powerline for vim, some symbols are not working.

For searching google i thought there maybe problems with the patch fonts. But after trying i cannot solve this problem. Could someone help me?

Environment: Mac OSX 10.8.2, iTerm2. 

5条回答
欢心
2楼-- · 2019-02-23 01:06
淡お忘
3楼-- · 2019-02-23 01:10

For me this vim config solved the problem:

g:Powerline_symbols = 'unicode'

In some cases it could also be needed:

set t_Co=256 
查看更多
做自己的国王
4楼-- · 2019-02-23 01:16

--For all the noobs, with attention deficit, like my self.

I had the same issue, the solution was much more basic than than installing the fonts, but was not mentioned anywhere else: manually setting the fonts in your terminal (still need to make sure you have the fonts installed).

In iTerm2: iTerm > preferences > profiles > text > Regular font & non ASCII font.

In Terminal : Terminal > preferences > profiles > text > fonts

查看更多
狗以群分
5楼-- · 2019-02-23 01:17

Install powerline-shell fonts and change in your iTerm2 the text's setting with Inconsolata font for exemple.

查看更多
叼着烟拽天下
6楼-- · 2019-02-23 01:17

Since you are on iTerm 2, make sure you go into your settings and set both the regular font and the non-ascii font to powerline compatible fonts or the prompt separators and special characters will not display correctly as it is happening in your case.

查看更多
登录 后发表回答