Closed wullxz closed 4 years ago
Issue-Label Bot is automatically applying the label bug
to this issue, with a confidence of 0.69. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
I believe some symbols are only avaliable in nerd fonts, and not all powerline fonts behave the same. I personally use these fonts: https://github.com/liuchengxu/space-vim/wiki/tips#programming-fonts. If you don't have the proper font installed, just disable the icon in vista.vim via let g:vista#renderer#enable_icon = 0
.
Thanks @liuchengxu ! I got "Sauce Code Pro" in semi bold from here and installed it like this:
mkdir -p ~/.fonts/nerd-fonts/
cd ~/.fonts/nerd-fonts/
curl https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/SourceCodePro/Semibold/complete/Sauce%20Code%20Pro%20Semibold%20Nerd%20Font%20Complete%20Mono.ttf?raw=true -o SauceCodePro.ttf
fc-cache -fv SauceCodePro.ttf
# check if it's there and what name it has:
fc-list | grep -i code
I added it to vim using this command in my .vimrc:
set guifont=SauceCodePro\ Nerd\ Font\ Mono
I believe some symbols are only avaliable in nerd fonts, and not all powerline fonts behave the same. I personally use these fonts: https://github.com/liuchengxu/space-vim/wiki/tips#programming-fonts. If you don't have the proper font installed, just disable the icon in vista.vim via
let g:vista#renderer#enable_icon = 0
.
all the icons on my ubuntu 20.04 gnome-terminal are messed up until I set let g:vista#renderer#enable_icon = 0
and also disable icons.
I installed vista.vim and made sure that the powerline fonts are available:
sudo apt install fonts-powerline
I restarted my terminal and X server and can see in my vim-airline bar, that special symbols (the arrows, "Line Number"-Symbol, Git Branch symbol) are now available. To test what's wrong, I assigned the unicode value 0192 to be displayed for functions, which works:
But still, as you can see, the other symbols aren't displayed. What font (or patch) do I need to show the default symbols?
Environment: Editor: Vim 8.0 OS: Ubuntu 18.04 on Windows (WSL)