keymap: fix the style
This commit is contained in:
parent
89e484ac59
commit
57cda93aad
@ -1,18 +1,14 @@
|
|||||||
" MIT License. Copyright (c) 2017 Doron Behar.
|
" MIT License. Copyright (c) 2013-2017 Doron Behar, C.Brabandt
|
||||||
|
" vim: et ts=2 sts=2 sw=2
|
||||||
|
|
||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
|
|
||||||
if !has('keymap')
|
if !has('keymap')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
function! airline#extensions#keymap#status()
|
function! airline#extensions#keymap#status()
|
||||||
if &keymap != ''
|
return ('%s', (&keymap ? (g:airline_symbols.keymap . ' '. &keymap) : ''))
|
||||||
let s:keymap2print = g:airline_symbols.keymap . ' ' . &keymap
|
|
||||||
else
|
|
||||||
let s:keymap2print = ''
|
|
||||||
endif
|
|
||||||
return printf('%s', s:keymap2print)
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#keymap#init(ext)
|
function! airline#extensions#keymap#init(ext)
|
||||||
|
Loading…
Reference in New Issue
Block a user