mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-12-20 02:04:46 +08:00
15 lines
389 B
VimL
15 lines
389 B
VimL
" MIT license. Copyright (c) 2013 Bailey Ling.
|
|
" vim: ts=2 sts=2 sw=2 fdm=indent
|
|
|
|
function! airline#extensions#iminsert#get_text()
|
|
if &iminsert
|
|
return toupper(get(b:, 'keymap_name', 'lang'))
|
|
endif
|
|
return ''
|
|
endfunction
|
|
|
|
function! airline#extensions#iminsert#init()
|
|
let g:airline_section_a .= ' '.g:airline_left_alt_sep.' %{airline#extensions#iminsert#get_text()}'
|
|
endfunction
|
|
|