vim-airline/autoload/airline/extensions/keymap.vim
2017-08-26 18:09:20 +02:00

21 lines
460 B
VimL

" MIT License. Copyright (c) 2017 Doron Behar.
scriptencoding utf-8
if !has('keymap')
finish
endif
function! airline#extensions#keymap#status()
if &keymap != ''
let s:keymap2print = g:airline_symbols.keymap . ' ' . &keymap
else
let s:keymap2print = ''
endif
return printf('%s', s:keymap2print)
endfunction
function! airline#extensions#keymap#init(ext)
call airline#parts#define_function('keymap', 'airline#extensions#keymap#status')
endfunction