From 68f5f1e50d79d65868629071550b7434918feb63 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 15 Oct 2018 14:17:49 +0200 Subject: [PATCH] mode: Update doc, sort dict --- autoload/airline/init.vim | 10 +++++----- doc/airline.txt | 11 ++++++++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index 4b88a94..9b8b724 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -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', {}) diff --git a/doc/airline.txt b/doc/airline.txt index c94c52e..642b794 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -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',