Vim doesn't support unicode?

前端 未结 9 939
余生分开走
余生分开走 2020-12-12 17:34

I\'m trying to get the following into my .vimrc

\" Use the same symbols as TextMate for tabstops and EOLs
set listchars=tab:▸\\ ,eol:¬

Thos

相关标签:
9条回答
  • 2020-12-12 18:05

    Do you need a

    scriptencoding utf-8
    

    or whatever encoding your .vimrc is actually in?

    0 讨论(0)
  • 2020-12-12 18:08

    When all else failed, telling vim to save with UTF-8 encoding seemed to work (for now at least):

    :write ++enc=utf-8
    
    0 讨论(0)
  • 2020-12-12 18:11

    You need to compile vim with multi-byte support.

    The easiest way to do this is to run

    ./configure --with-features=big
    make
    

    This will build vim with the correct support.

    You can verify that it was compiled correctly with

    :version
    

    in vim or by running

    vim --version
    

    and looking for +multi_byte. If it says -multi_byte it will not work.

    0 讨论(0)
提交回复
热议问题