mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-02-20 16:48:24 +08:00
convert iminsert into a fragment.
This commit is contained in:
@@ -7,6 +7,13 @@ call extend(g:airline#fragments#symbols, {
|
||||
\ }, 'keep')
|
||||
|
||||
function! airline#fragments#get_paste()
|
||||
return &paste ? ' ' . g:airline#fragments#symbols.paste : ''
|
||||
return g:airline_detect_paste && &paste ? ' '.g:airline#fragments#symbols.paste : ''
|
||||
endfunction
|
||||
|
||||
function! airline#fragments#get_iminsert()
|
||||
if g:airline_detect_iminsert && &iminsert && exists('b:keymap_name')
|
||||
return ' '.g:airline_left_alt_sep.' '.toupper(b:keymap_name)
|
||||
endif
|
||||
return ''
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user