ufo22940268
V2EX  ›  问与答

终端下的vim里面为什么总是会出现这些小方框?

  •  
  •   ufo22940268 · Jun 24, 2013 · 4864 views
    This topic created in 4713 days ago, the information mentioned may be changed or developed.
    系统是archlinux, 我上台电脑上都没这个问题,这台上就不仅在powerline里面有,在nerdtree里面也有。字体已经换成powerline的专用字体,可是还是不行。

    下面是表现状况:


    我的locale的设置:
    LANG=en_US.UTF-8

    [ccheng@arch jQuery-File-Upload]$ locale -a
    C
    en_US.utf8
    POSIX
    zh_CN.utf8
    10 replies    1970-01-01 08:00:00 +08:00
    alexrezit
        1
    alexrezit  
       Jun 24, 2013
    statusline 里混进了奇怪的东西? :set stl 输出神马?
    timonwong
        2
    timonwong  
       Jun 24, 2013
    还是没有设对字体
    Gvim users: Update the GUI font in your vimrc file: set guifont=MyFont\ for\ Powerline
    Terminal users: Update your terminal configuration to use the patched font.
    ufo22940268
        3
    ufo22940268  
    OP
       Jun 24, 2013
    @alexrezit

    可是我觉得不是statusline的问题,因为nerdtree不属于statusline, 也出现了这种奇怪的字符。
    ufo22940268
        4
    ufo22940268  
    OP
       Jun 24, 2013
    @timonwong 我刚刚开了gvim试了下,发现显示很正常,而且查看了下guifont是为空的。
    timonwong
        5
    timonwong  
       Jun 24, 2013
    那可能是直接给原字体打了补丁,或者font fallback里面能找到。
    你可以再看看这里,有个支持的终端列表:
    https://powerline.readthedocs.org/en/latest/overview.html#term-feature-support-matrix

    除了给字体打补丁,还需要配置终端字体,支持fontconfig的可以使用fontconfig,不然就只能改配置文件了。
    TankyWoo
        6
    TankyWoo  
       Jun 24, 2013
    你把fancy的配置注释掉看看?
    ufo22940268
        8
    ufo22940268  
    OP
       Jun 25, 2013
    @duhastmich 厉害!
    换了terminator之后问题就不存在了,不过还是不知道为什么urxvt就不行,因为我在半年前都是正常的。
    ufo22940268
        9
    ufo22940268  
    OP
       Jun 25, 2013
    @duhastmich 我发现你的配置文件里面有yahei的字体,感觉很不错的样子,
    求字体
    duhastmich
        10
    duhastmich  
       Jun 25, 2013
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5532 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 06:04 · PVG 14:04 · LAX 23:04 · JFK 02:04
    ♥ Do have faith in what you're doing.