tonghuashuai
V2EX  ›  问与答

Vim 某些中文字符占位的问题

  •  
  •   tonghuashuai · Aug 28, 2014 · 3236 views
    This topic created in 4295 days ago, the information mentioned may be changed or developed.
    大家有没有遇到过 Vim 中输入某些中文字符的时候会出现显示问题,比如这个字符 ·

    只要在 Vim 中出现这个字符,这个字符后面的显示就会错乱,比如单个引号变成两个,比如多个括号等等的

    怎么破?

    环境是 iterm2 ssh 到 linux 上(gentoo)
    5 replies    2014-08-28 12:03:03 +08:00
    wisatbff
        1
    wisatbff  
       Aug 28, 2014
    没遇到。那些字符?
    tonghuashuai
        2
    tonghuashuai  
    OP
       Aug 28, 2014
    @wisatbff ·
    就是波浪线键上的那个点儿
    xell
        3
    xell  
       Aug 28, 2014
    试试 :redraw 吧,这多半跟远程状态下刷新不及时有关,也跟字体、iterm2的设置(例如 Profiles->Text->Double-Width Char)等其他因素有关。
    Csineneo
        4
    Csineneo  
       Aug 28, 2014
    set ambiwidth=double?
    SoloCompany
        5
    SoloCompany  
       Aug 28, 2014
    console 编码类型是 GB18030
    然后 export LC_ALL=zh_CN.GB18030
    的时候会有这个问题

    console 编码类型是 UTF8
    然后 export LC_ALL=zh_CN.UTF8
    没有这个问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   991 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 5414617a · 35ms · UTC 22:14 · PVG 06:14 · LAX 15:14 · JFK 18:14
    ♥ Do have faith in what you're doing.