From 994cfd80eba2ccf89dd6dceb2a302a30aa67f847 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 15 Dec 2022 17:12:46 +0100 Subject: [PATCH] Powerline: Mention alternative to notexists symbol I noticed, that in some environments the default g:airline_symbols[notexists] just does not show up, even when the same font in the gui works. So let's at least mention a possible alternative, that you can easily use in your vimrc: ```vim if !exists("g:airline_symbols") let g:airline_symbols = {} endif let g:airline_symbols.notexists = "\u2204" ``` --- autoload/airline/init.vim | 1 + doc/airline.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index f13b68c9..2fb86c7c 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -137,6 +137,7 @@ function! airline#init#bootstrap() \ 'dirty': "\u26a1", \ 'crypt': nr2char(0x1F512), \ }, 'keep') + " Note: If "\u2046" (Ɇ) does not show up, try to use "\u2204" (∄) elseif &encoding==?'utf-8' && !get(g:, "airline_symbols_ascii", 0) " Symbols for Unicode terminals call s:check_defined('g:airline_left_sep', "") diff --git a/doc/airline.txt b/doc/airline.txt index a371cd3f..febba2f1 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -386,6 +386,7 @@ its contents. > let g:airline_symbols.paste = '∥' let g:airline_symbols.spell = 'Ꞩ' let g:airline_symbols.notexists = 'Ɇ' + let g:airline_symbols.notexists = '∄' let g:airline_symbols.whitespace = 'Ξ' " powerline symbols