In the official documentation it should just be adding let g:airline_powerline_fonts = 1 in your. The final trick was forcing vim-airline to use the fonts it needs. So I suggest you get this configured first and then if you get the fonts working it should magically appear. This is opposite to the official instructions but I had this bit wrong at the end which made me question all the font installations. Then even if you do manage to get one installed they look uglier than you'd hope because the fonts don't fully work. So vim-airline just uses the same UTF-8 characters. ![]() The background is that airline is a pure vim version of powerline (which was python), and powerline uses UTF-8 characters to insert those angle brackets. The first is figuring out what the hell are those strange but nice angle brackets that appear in the vim-airline status bar. I've created duplicates of this on my own blog and in the GitHub Airline Wiki. This took hours to figure out, so here's more of a dummies guide for Fedora/Ubuntu, with a special section for Windows. You can find more information here :help guifont. vimrc, for example: set guifont=DejaVu\ Sans:s12. If you use gui version of Vim (MacVim, GVim) you need to set the font in. If you use Vim in terminal you should switch to the appropriate font in profile preferences of your terminal. ![]() ![]() The unicode symbols section is unnecessary here if you already have a patched font but it gives you a nice fallback if you try to use other font which doesn't have the appropriate symbols. vimrc settingsįrom :help airline-customization, place this code into your. You can find a lot of patched fonts here. They are not standard symbols so you need to install a patched font. You need to install fonts into your system with symbols like branching, big triangles etc. Yes I know about the README and other stuff, but I think there should be a getting started or minimum settings section in the help file.Īnyway here are the settings. At first I too didn't understand what needs to be done to get this nice looking toolbar.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |