Vim电力线(Lokaltog)在MacVim中怪异的字符 [英] Vim powerline (Lokaltog's) weird characters in MacVim

查看:250
本文介绍了Vim电力线(Lokaltog)在MacVim中怪异的字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Powerline插件(中的字体(或自行修补)


I'm trying to use Powerline plugin (https://github.com/Lokaltog/vim-powerline) for the first time.

Plugin seems to be installed. I use vundle with the following command:

Bundle 'Lokaltog/powerline', {'rtp':  'powerline/bindings/vim'}

I've tried many different settings, but currently in my vimrc it looks like this:

set guifont=Menlo\ Regular\ for\ Powerline:h15
"set guifont=Monaco\ Regular:h15
" set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim
let g:Powerline_symbols = 'fancy'
"let g:Powerline_symbols = 'compatible'
"let g:Powerline_cache_enabled = 1
"set t_Co=256

I've also pasted commented out some of the commands I've tried.

I've tried different fonts, patched and normal, but nothing helps.

laststatus is set to 2.

I'm using MacVim on Mac OS X 10.8.2.

Here's how the powerline with 2 windows looks for me:

Note the weird boxed 'x' symbols...

Any ideas?

解决方案

You're referring to two different plugins. vim-powerline is the old vim-only project. Lokaltog/powerline is a new Python-based port, and the code points have changed in this version because the old code points caused a bunch of issues.

You'll have to either:

  1. Update your bundle to point to vim-powerline (and remove the rtp option), or
  2. Update your font to one of the fonts in https://github.com/Lokaltog/powerline-fonts (or patch your own)

这篇关于Vim电力线(Lokaltog)在MacVim中怪异的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆