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

@@ -161,6 +161,10 @@ function! airline#check_mode(winnr)
call add(l:mode, 'paste')
endif
if g:airline_detect_crypt && !empty(&key)
call add(l:mode, 'crypt')
endif
if &readonly || ! &modifiable
call add(l:mode, 'readonly')
endif