diff --git a/autoload/airline/extensions/keymap.vim b/autoload/airline/extensions/keymap.vim index 4f54937..2ecbd45 100644 --- a/autoload/airline/extensions/keymap.vim +++ b/autoload/airline/extensions/keymap.vim @@ -8,7 +8,11 @@ if !has('keymap') endif function! airline#extensions#keymap#status() - return printf('%s', (!empty(&keymap) ? (g:airline_symbols.keymap . ' '. &keymap) : '')) + if (get(g:, 'airline#extensions#keymap#enabled', 1) && has('keymap')) + return printf('%s', (!empty(&keymap) ? (g:airline_symbols.keymap . ' '. &keymap) : '')) + else + return '' + endif endfunction function! airline#extensions#keymap#init(ext)