From f8c85e3e5340865c3380dd344d06207d4ad04ec6 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Sat, 25 Feb 2017 17:39:32 +0100 Subject: [PATCH] for airline ascii symbols set g:airline_symbols_ascii --- autoload/airline/init.vim | 2 +- doc/airline.txt | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index 02f1c49e..20a772fa 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -87,7 +87,7 @@ function! airline#init#bootstrap() \ 'notexists': "\u0246", \ 'crypt': nr2char(0x1F512), \ }, 'keep') - elseif &encoding==?'utf-8' + elseif &encoding==?'utf-8' && !get(g:, "g:airline_symbols_ascii", 0) " Symbols for Unicode terminals call s:check_defined('g:airline_left_sep', "") call s:check_defined('g:airline_left_alt_sep', "") diff --git a/doc/airline.txt b/doc/airline.txt index 8fb25ae3..2e97af1b 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -102,9 +102,12 @@ values): endif endfunction < -* enable/disable automatic population of the `g:airline_symbols` dictionary - with powerline symbols. > - let g:airline_powerline_fonts=0 +* By default, airline will use unicode symbols if your encoding matches + utf-8. If you want the powerline symbols set this variable: > + let g:airline_powerline_fonts = 1 +< + If you want to use plain ascii symbols, set this variable: > + let g:airline_symbols_ascii = 1 < * define the set of text to display for each mode. > let g:airline_mode_map = {} " see source for the defaults