简体   繁体   中英

Using patched Powerline fonts for vim-airline

I've cloned vim-airline with Pathogen. Next I cloned patched Powerline fonts into /usr/local/share/fonts on my Ubuntu 14.04, and did fc-cache -vf /usr/local/share/fonts . I then added set guifont=Ubuntu\\ Mono\\ for\\ Powerline\\ 11 as well as set laststatus=2 and let g:airline_powerline_fonts=1 in my .gvimrc.

I'm having two problems: I'm not getting the fancy Powerline symbols, and the spacing on my fonts has been increased.

Any suggestions?

It's supposed to be

set guifont=Ubuntu\ Mono\ derivative\ Powerline\ 11

For problems with fonts in future:

  • select font via set guifont=*
  • get fontname set guifont
  • don't forget to escape spaces

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM