Add crypt indicator

If editing an encrypted file, add an indicator, that the file is
encrypted
This commit is contained in:
Christian Brabandt
2015-06-02 20:37:08 +02:00
parent 67de5f2257
commit 9d90e2cbfe
4 changed files with 22 additions and 3 deletions

View File

@@ -54,6 +54,10 @@ function! airline#parts#mode()
return get(w:, 'airline_current_mode', '')
endfunction
function! airline#parts#crypt()
return g:airline_detect_crypt && !empty(&key) ? g:airline_symbols.crypt : ''
endfunction
function! airline#parts#paste()
return g:airline_detect_paste && &paste ? g:airline_symbols.paste : ''
endfunction