mode: Update doc, sort dict

This commit is contained in:
Christian Brabandt 2018-10-15 14:17:49 +02:00
parent f045452743
commit 68f5f1e50d
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 13 additions and 8 deletions

View File

@ -36,6 +36,7 @@ function! airline#init#bootstrap()
call s:check_defined('g:airline_mode_map', {})
call extend(g:airline_mode_map, {
\ '__' : '------',
\ 'c' : 'COMMAND',
\ 'i' : 'INSERT',
\ 'ic' : 'INSERT COMPL',
\ 'ix' : 'INSERT COMPL',
@ -43,15 +44,14 @@ function! airline#init#bootstrap()
\ 'ni' : '(INSERT)',
\ 'no' : 'OP PENDING',
\ 'R' : 'REPLACE',
\ 'v' : 'VISUAL',
\ 'V' : 'V-LINE',
\ 'c' : 'COMMAND',
\ '' : 'V-BLOCK',
\ 'Rv' : 'V REPLACE',
\ 's' : 'SELECT',
\ 'S' : 'S-LINE',
\ '' : 'S-BLOCK',
\ 't' : 'TERMINAL',
\ 'Rv' : 'V REPLACE',
\ 'v' : 'VISUAL',
\ 'V' : 'V-LINE',
\ '' : 'V-BLOCK',
\ }, 'keep')
call s:check_defined('g:airline_theme_map', {})

View File

@ -174,10 +174,15 @@ values):
" or copy paste the following into your vimrc for shortform text
let g:airline_mode_map = {
\ '__' : '-',
\ 'n' : 'N',
\ 'i' : 'I',
\ 'R' : 'R',
\ 'c' : 'C',
\ 'i' : 'I',
\ 'ic' : 'I',
\ 'ix' : 'I',
\ 'n' : 'N',
\ 'ni' : 'N',
\ 'no' : 'N',
\ 'R' : 'R',
\ 'Rv' : 'R',
\ 'v' : 'V',
\ 'V' : 'V',
\ '' : 'V',