search

Home  >  Q&A  >  body text

vimrc - After installing vim-airline in gvim, the status bar is garbled and the arrows cannot be displayed. What's going on?

曾经蜡笔没有小新曾经蜡笔没有小新2774 days ago1076

reply all(2)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 16:36:50

    I’ve only been able to answer your questions these days.
    If the code is garbled, change the encoding:

    " 默认编码 {{{
    if has('vim_starting')
        if &encoding !=? 'utf-8'
            let &termencoding = &encoding
        endif
        set encoding=utf-8
        set fileencoding=utf-8
        set fileencodings=ucs-bom,utf-8,default,cp936
    endif
    " }}} end

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-16 16:36:50

    It is recommended that you first learn the complete vim configuration on github before starting the configuration. It may be better to play around with those good configurations than to work hard, and if you encounter problems with their configurations and raise an issue, most of them will be happy to respond. Or you can just take a look at it. It won’t take a long time, but it is very useful. You can often see the pitfalls that others have stepped on and avoid detours. Imitation is a good way to learn.

    This problem is mostly due to encoding or fonts. Since I don’t use GVIM very much and I don’t use it under Windows, I can only give this suggestion.

    reply
    0
  • Cancelreply