Powerline on Mac OS X not working as expected
Asked Answered
C

6

6

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. 
Condillac answered 18/1, 2013 at 4:8 Comment(0)
C
2

See “Custom font not working for iTerm2.” issue.

Copperplate answered 18/1, 2013 at 4:23 Comment(3)
no it cant help me with this problem. After add font rightly there still '??' in powerline...Condillac
@Condillac Did you really read it? You must update iterm2 (AFAIR to developed version, not to some release). Just adding font is not enough. For old versions of iterm2 this bug has RESOLVED WONTFIX status.Copperplate
Finally i get done of it. I only remove all of my vim files and copy them from my ubuntu old files. It seems like something went wrong in my config file or something .@Copperplate thanks a lot, but i really read it and this issue isn`t caused by the verson of iterm2.Condillac
M
4

--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

Melisamelisande answered 3/12, 2015 at 23:4 Comment(1)
Actually I don't get how this did not get way more upvotes. Thanks mate!Aldine
C
2

See “Custom font not working for iTerm2.” issue.

Copperplate answered 18/1, 2013 at 4:23 Comment(3)
no it cant help me with this problem. After add font rightly there still '??' in powerline...Condillac
@Condillac Did you really read it? You must update iterm2 (AFAIR to developed version, not to some release). Just adding font is not enough. For old versions of iterm2 this bug has RESOLVED WONTFIX status.Copperplate
Finally i get done of it. I only remove all of my vim files and copy them from my ubuntu old files. It seems like something went wrong in my config file or something .@Copperplate thanks a lot, but i really read it and this issue isn`t caused by the verson of iterm2.Condillac
E
2

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

Export answered 28/7, 2015 at 15:11 Comment(0)
L
2

iTerm2 -> Preferences... -> Text -> Font & Non-ASCII Font -> Choose Inconsolata for Powerline

enter image description here

Laterality answered 10/12, 2019 at 3:36 Comment(0)
B
1

For me this vim config solved the problem:

g:Powerline_symbols = 'unicode'

In some cases it could also be needed:

set t_Co=256 
Burp answered 9/12, 2015 at 1:55 Comment(0)
U
0

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.

Unlearned answered 17/7, 2017 at 22:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.