vim-airline use patched fonts

给 vim 装了个 status line 插件,https://github.com/bling/vim-airline, 但是 powerline symbols 模式显示乱码,原因是我使用的字体 (monaco) 中没有需要的特殊字符

可以对字体集进行扩充,已经有人 patched 过了

https://gist.github.com/baopham/1838072#file-monaco-for-powerline-otf

选择 theme 等设置, 参见 :h airline

""""""""""""""""""""""""""""""
" airline
""""""""""""""""""""""""""""""
let g:airline_theme            = 'luna'
let g:airline_enable_branch    = 1
let g:airline_enable_syntastic = 1
let g:airline_powerline_fonts  = 1
let g:airline_mode_map = {
    \ '__' : '-',
    \ 'n'  : 'N',
    \ 'i'  : 'I',
    \ 'R'  : 'R',
    \ 'c'  : 'C',
    \ 'v'  : 'V',
    \ 'V'  : 'V',
    \ '' : 'V',
    \ 's'  : 'S',
    \ 'S'  : 'S',
    \ '' : 'S',
    \ }

效果:

vim-airline

你可能感兴趣的:(vim-airline use patched fonts)