vim-powerline not working in CLI/tmux correctly

343 views
Skip to first unread message

Niels Kobschätzki

unread,
May 13, 2012, 2:14:00 AM5/13/12
to v...@vim.org
Hi,

I am using vim-powerline and I am wondering why it does not work in the
cli correctly because the symbols are not shown. I am using Terminal.app
(Mac OS 10.7.4) set up as xterm-256 and use a font patched for
powerline. The font is not defined in the .vimrc (is that even
possible)? When I am using tmux it looks even worse.
In MacVim I am using the same font, defined via the .gvimrc.
Everything runs on my local machine, no remote machines involved.

Powerline is updated via vundle to its latest state, vim-version used by
the cli 7.3.515, vim-version used by MacVim 7.3.390

Here are screenshots showing what I mean:
Powerline in CLI (not working)


Powerline in CLI with tmux (not working at all)
https://skitch.com/e-nielsk/833mj/vim-powerline-tmux

Powerline in MacVim (working)
https://skitch.com/e-nielsk/833mg/vim-powerline-macvim

Any ideas what the problem(s) could be?

Niels

Niels Kobschätzki

unread,
May 13, 2012, 3:17:42 AM5/13/12
to vim...@googlegroups.com
On 13 May 2012, at 8:14, Niels Kobschätzki wrote:

> Hi,
>
> I am using vim-powerline and I am wondering why it does not work in
> the cli correctly because the symbols are not shown. I am using
> Terminal.app (Mac OS 10.7.4) set up as xterm-256 and use a font
> patched for powerline. The font is not defined in the .vimrc (is that
> even possible)? When I am using tmux it looks even worse.
> In MacVim I am using the same font, defined via the .gvimrc.
> Everything runs on my local machine, no remote machines involved.
>
> Powerline is updated via vundle to its latest state, vim-version used
> by the cli 7.3.515, vim-version used by MacVim 7.3.390
>
> Here are screenshots showing what I mean:
> Powerline in CLI (not working)

forgot that link
https://skitch.com/e-nielsk/833md/vim-powerline-cli

Parantapa Bhattacharya

unread,
May 13, 2012, 3:33:04 AM5/13/12
to vim...@googlegroups.com
Hi

I think the problem is your Terminal.app which doesn't have the fonts
properly setup. When you are using the cli version the font needs to
be set for the terminal and not vim. In case of tmux I think it is
because it is not handling unicode properly. Try running tmux as "tmux
-u" which forces proper use of unicode.
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php



--
Parantapa Bhattacharya

Niels Kobschätzki

unread,
May 13, 2012, 6:07:52 AM5/13/12
to vim...@googlegroups.com
On Sunday, 13. May 2012 at 09:33, Parantapa Bhattacharya wrote:
Hi

I think the problem is your Terminal.app which doesn't have the fonts
properly setup. When you are using the cli version the font needs to
be set for the terminal and not vim.
The Terminal uses the appropriate font 
In case of tmux I think it is
because it is not handling unicode properly. Try running tmux as "tmux
-u" which forces proper use of unicode.
I'll try that when I am back at my computer

Niels 

Niels Kobschätzki

unread,
May 13, 2012, 11:44:55 AM5/13/12
to vim...@googlegroups.com
On 13 May 2012, at 12:07, Niels Kobschätzki wrote:

> On Sunday, 13. May 2012 at 09:33, Parantapa Bhattacharya wrote:
>> Hi
>>
>> I think the problem is your Terminal.app which doesn't have the fonts
>> properly setup. When you are using the cli version the font needs to
>> be set for the terminal and not vim.
>>
>>
>
> The Terminal uses the appropriate font
>> In case of tmux I think it is
>> because it is not handling unicode properly. Try running tmux as
>> "tmux
>> -u" which forces proper use of unicode.
>>
>>
>
> I'll try that when I am back at my computer

it looks a bit better but it is still not at the same state as without
tmux but it could be that tmux doesn't interpret the 256 colors
correctly
Reply all
Reply to author
Forward
0 new messages