Vim-devicons: Icons show as question marks

Created on 24 Feb 2017  ·  19Comments  ·  Source: ryanoasis/vim-devicons

Required Info

  • [x] I have searched the issues for my issue and found nothing related and/or helpful
  • [x] I have read or at least glanced at the FAQ
  • [x] I have read or at least glanced at the Wiki

  • [x] What version of vim are you using?
    VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jan 22 2017 05:25:57) MacOS X (unix) version Included patches: 1-211 Compiled by Homebrew

  • [x] What version of vim-devicons are you using?
    0.8.5
  • [x] Are you using vim from the terminal or a GUI vim?
    Terminal
  • [x] Are you using Mac, Lin

Optional Info

  • [x] Provide screenshots where appropriate
    image
    image

  • iTerm: Build 3.1.20170221-nightly

My vimrc has encoding=utf-8 and vim-devicons is loaded after vim-airline.

Any thoughts as to why this is not working?

Most helpful comment

@AntonRatnick Tell me how you solved the problem, I have Mac, iTerm2 and NeoVim

  1. Step:
brew tap caskroom/fonts
brew cask install font-hack-nerd-font
  1. Step: Config in .vimrc
set encoding=utf8
let g:airline_powerline_fonts = 1
  1. Step:
    2017-10-23 22 23 32

All 19 comments

Hey @pdoak what font are you using?

for more steps please follow these steps to see if they are helpful to you: https://github.com/ryanoasis/vim-devicons/wiki/FAQ-&-Troubleshooting#not-working-general (Just updated!)

I'm having the same issue on Mac on linux works fine

I'm having the same issue on Mac

I've solved the problem. It was a problem with the font.

Thanks for the update @pdoak

@ArtStepanyuk and @AntonRatnick can you tell me which fonts you are using and if you still have the issue?

I use ITerm2 on my mac. Problem solved.
I just set in iterm preferences right ASCII font.

Thanks for the updates. I'm considering this closed for now

@AntonRatnick Tell me how you solved the problem, I have Mac, iTerm2 and NeoVim

  1. Step:
brew tap caskroom/fonts
brew cask install font-hack-nerd-font
  1. Step: Config in .vimrc
set encoding=utf8
let g:airline_powerline_fonts = 1
  1. Step:
    2017-10-23 22 23 32

@gHashTag Hey it looks like you are not using a Nerd Font. That is required for vimdevicons to work "out of the box". It looks to me like you are only using a Powerline font

@ryanoasis Thanks for the quick response. Does not this command put a font?

brew tap caskroom/fonts
brew cask install font-hack-nerd-font

How to solve this problem?

@gHashTag Hey sorry I did miss that part of your comment, however from your last screen shot the hack nerd font you downloaded with brew cask is not selected as your font. Is it available to be selected in the 'change font' ?

@ryanoasis It is he?
2017-10-24 15 13 48

@ryanoasis have ideas how to solve the error?

Thanks. Everything is working. It was necessary to choose this font in iTerm2:

2017-10-26 22 21 18

Hi @ryanoasis, I've this same problem right now. I already installed the NerdFont using Brew, but it seems I can't find any fonts that related to Nerd in my iTerm preferences. Am I missing something in here?

Never mind, I found it. Thanks @ryanoasis

@ryanoasis Thanks for the quick response. Does not this command put a font?

brew tap caskroom/fonts
brew cask install font-hack-nerd-font

How to solve this problem?

I'm using mac to connect remote linux, it doesn't work after I installed fonts on remote linux, but after installed fonts on mac and do:
fc-cache -f -v
then choose hack-nerd-font, it finally works!

@ryanoasis man you are crazily awesome!!!!! Thanks your input, it helped me to get what I wanted.

Hi, I want to know does this plugin only support font that patched glyphs?
It seems like this plugin will not work when I was not using nerd font.

@ryanoasis Sorry for disturbing, but I really want to know the answer. 🤕️

Was this page helpful?
0 / 5 - 0 ratings

Related issues

flippidippi picture flippidippi  ·  9Comments

Leeiio picture Leeiio  ·  10Comments

divramod picture divramod  ·  7Comments

marioortizmanero picture marioortizmanero  ·  3Comments

DemonCloud picture DemonCloud  ·  3Comments