Tendo problema com fontes na vim-airline

18

Eu queria instalar o vim-airline, mas estou tendo problemas com fontes unicode.

Eu o instalei com o vundle:

.vimrc

set encoding=utf-8
Bundle 'bling/vim-airline'
let g:airline_powerline_fonts = 1
let g:airline_theme='powerlineish'

.fonts

$ ll .fonts
total 376
drwxr-xr-x 2 xxx xxx   4096 gru 19 13:26 AnonymousPro
drwxr-xr-x 2 xxx xxx   4096 gru 19 13:26 DejaVuSansMono
-rw-r--r-- 1 xxx xxx 334548 gru 19 13:42 DejaVu Sans Mono for Powerline.ttf
drwxr-xr-x 2 xxx xxx   4096 gru 19 13:26 DroidSansMono
drwxr-xr-x 2 xxx xxx   4096 gru 19 13:26 Inconsolata
drwxr-xr-x 2 xxx xxx   4096 gru 19 13:26 InconsolataDz
drwxr-xr-x 2 xxx xxx   4096 gru 19 13:26 LiberationMono
drwxr-xr-x 2 xxx xxx   4096 gru 19 13:26 Meslo
drwxr-xr-x 2 xxx xxx   4096 gru 19 13:42 PowerlineSymbols
-rw-r--r-- 1 xxx xxx   1599 gru 19 13:26 README.rst
drwxr-xr-x 2 xxx xxx   4096 gru 19 13:26 SourceCodePro
drwxr-xr-x 5 xxx xxx   4096 gru 19 13:26 Terminus
drwxr-xr-x 2 xxx xxx   4096 gru 19 13:26 UbuntuMono


fc-cache -vf ~/.fonts
/home/xxx/.fonts: caching, new cache contents: 1 fonts, 11 dirs
/home/xxx/.fonts/AnonymousPro: caching, new cache contents: 4 fonts, 0 dirs
/home/xxx/.fonts/DejaVuSansMono: caching, new cache contents: 4 fonts, 0 dirs
/home/xxx/.fonts/DroidSansMono: caching, new cache contents: 1 fonts, 0 dirs
/home/xxx/.fonts/Inconsolata: caching, new cache contents: 1 fonts, 0 dirs
/home/xxx/.fonts/InconsolataDz: caching, new cache contents: 1 fonts, 0 dirs
/home/xxx/.fonts/LiberationMono: caching, new cache contents: 4 fonts, 0 dirs
/home/xxx/.fonts/Meslo: caching, new cache contents: 6 fonts, 0 dirs
/home/xxx/.fonts/PowerlineSymbols: caching, new cache contents: 1 fonts, 0 dirs
/home/xxx/.fonts/SourceCodePro: caching, new cache contents: 7 fonts, 0 dirs
/home/xxx/.fonts/Terminus: caching, new cache contents: 0 fonts, 3 dirs
/home/xxx/.fonts/Terminus/BDF: caching, new cache contents: 18 fonts, 0 dirs
/home/xxx/.fonts/Terminus/PCF: caching, new cache contents: 18 fonts, 0 dirs
/home/xxx/.fonts/Terminus/PSF: caching, new cache contents: 0 fonts, 0 dirs
/home/xxx/.fonts/UbuntuMono: caching, new cache contents: 4 fonts, 0 dirs
/var/cache/fontconfig: not cleaning unwritable cache directory
/home/xxx/.cache/fontconfig: cleaning cache directory
/home/xxx/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded

Ainda tenho esses símbolos

Euatétenteiinserirossímbolosem.vimrc

letg:airline_left_sep=''letg:airline_left_alt_sep=''letg:airline_right_sep=''letg:airline_right_alt_sep=''letg:airline_symbols.branch=''letg:airline_symbols.readonly=''letg:airline_symbols.linenr=''

Maselessãoinseridosassim:

    
por Patryk 19.12.2013 / 13:59

1 resposta

23

A solução foi selecionar a fonte que eu instalei (aquela com correções Powerline) no terminal do Gnome:

Com o terminal gnome ativo, clique em "Editar" > "Preferências de perfil"

Agoraasfontesnotmuxfuncionambem.

Linkparafontesdetrabalhoparapowerlineestáaqui:

link

    
por Patryk 18.01.2014 / 13:40