convert iminsert into a fragment.

This commit is contained in:
Bailey Ling
2013-08-26 23:07:14 -04:00
parent e919663781
commit fe24924ad3
5 changed files with 14 additions and 21 deletions

View File

@@ -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