美文网首页
vimplus------airline配置(防乱码)

vimplus------airline配置(防乱码)

作者: 錦魚 | 来源:发表于2019-11-08 09:42 被阅读0次

"--------------------Airline设置--------------------
set t_Co=256
set ttimeoutlen=50
let g:airline_theme='powerlineish'
let g:airline_powerline_fonts=1
"let g:airline#extensions#whitespace#enabled=0
"let g:airline#extensions#whitespace#symbol='!'
set guifont=Consolas\ for\ Powerline\ FixedD:h11
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
if has("gui_running") && &enc == 'utf-8' && &fenc == 'utf-8'
let g:airline_left_sep = '⮀'
let g:airline_left_alt_sep = '⮁'
let g:airline_right_sep = '⮂'
let g:airline_right_alt_sep = '⮃'
let g:airline_symbols.branch = '⭠'
let g:airline_symbols.readonly = '⭤'
let g:airline_symbols.linenr = '⭡'
else
let g:airline_left_sep = '>'
let g:airline_left_alt_sep = '>'
let g:airline_right_sep = '<'
let g:airline_right_alt_sep = '<'
let g:airline_symbols.branch = '|'
let g:airline_symbols.readonly = ''
let g:airline_symbols.linenr = 'LN'
endif
let g:airline_detect_paste=0
let g:airline#extensions#default#section_truncate_width = {'b': 79, 'x': 60, 'y': 55, 'z': 45}
let g:airline_section_z = '%3p%% %#__accent_bold#%{g:airline_symbols.linenr} %1l%#restore#:%1v'
"let g:airline#extensions#tabline#enabled=1

相关文章

网友评论

      本文标题:vimplus------airline配置(防乱码)

      本文链接:https://www.haomeiwen.com/subject/bxzvbctx.html