mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:30:04 +08:00
60 lines
2.0 KiB
VimL
60 lines
2.0 KiB
VimL
scriptencoding utf-8
|
||
let g:airline_powerline_fonts=1
|
||
let g:airline_skip_empty_sections = 1
|
||
let g:airline#extensions#tabline#enabled = 1
|
||
let g:airline#extensions#tmuxline#enabled = 1
|
||
let g:Powerline_sybols = 'unicode'
|
||
let g:airline#extensions#tabline#buffer_idx_mode = 1
|
||
let g:airline#extensions#tabline#buffer_nr_show = 1
|
||
let g:airline#extensions#tabline#buffer_nr_format = '%s:'
|
||
let g:airline#extensions#tabline#fnamemod = ':t'
|
||
let g:airline#extensions#tabline#fnamecollapse = 1
|
||
let g:airline#extensions#tabline#fnametruncate = 0
|
||
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
|
||
nmap <leader>1 <Plug>AirlineSelectTab1
|
||
nmap <leader>2 <Plug>AirlineSelectTab2
|
||
nmap <leader>3 <Plug>AirlineSelectTab3
|
||
nmap <leader>4 <Plug>AirlineSelectTab4
|
||
nmap <leader>5 <Plug>AirlineSelectTab5
|
||
nmap <leader>6 <Plug>AirlineSelectTab6
|
||
nmap <leader>7 <Plug>AirlineSelectTab7
|
||
nmap <leader>8 <Plug>AirlineSelectTab8
|
||
nmap <leader>9 <Plug>AirlineSelectTab9
|
||
nmap <leader>- <Plug>AirlineSelectPrevTab
|
||
nmap <leader>+ <Plug>AirlineSelectNextTab
|
||
if !exists('g:airline_symbols')
|
||
let g:airline_symbols = {}
|
||
endif
|
||
|
||
" unicode symbols
|
||
let g:airline_left_sep = '»'
|
||
let g:airline_left_sep = '▶'
|
||
let g:airline_right_sep = '«'
|
||
let g:airline_right_sep = '◀'
|
||
let g:airline_symbols.crypt = '🔒'
|
||
let g:airline_symbols.linenr = '␊'
|
||
let g:airline_symbols.linenr = ''
|
||
let g:airline_symbols.linenr = '¶'
|
||
let g:airline_symbols.branch = '⎇'
|
||
let g:airline_symbols.paste = 'ρ'
|
||
let g:airline_symbols.paste = 'Þ'
|
||
let g:airline_symbols.paste = '∥'
|
||
let g:airline_symbols.notexists = '∄'
|
||
let g:airline_symbols.whitespace = 'Ξ'
|
||
|
||
" powerline symbols
|
||
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 = ''
|
||
let g:airline_symbols.maxlinenr= ''
|
||
|
||
|
||
augroup Fix_airline_with_unite
|
||
autocmd FileType unite AirlineRefresh
|
||
autocmd FileType vimfiler AirlineRefresh
|
||
augroup END
|