Skip to content

Instantly share code, notes, and snippets.

@kopwei
Created March 27, 2019 08:06
Show Gist options
  • Save kopwei/11d6341f79f1b4f18ce46843eece2801 to your computer and use it in GitHub Desktop.
Save kopwei/11d6341f79f1b4f18ce46843eece2801 to your computer and use it in GitHub Desktop.
SpaceVim file-type icon issue on Ubuntu

This is a note for installing SpaceVIM on Ubuntu

I installed SpaceVIM on Ubuntu Bionic today but the file-type icons are shown in strange Chinese characters rather than the correct icons.

Check 1: Terminal Encoding

Set terminal profile encoding to UTF-8

Check 2: VIM Encoding

Set VIM encoding to UTF-8. Check the encoding via following command in VIM

:set encoding?

Check 3: Install Fonts

Make sure "nerd-fonts" are installed. Install it by following Nerd Font README

Check 4: Set Ubuntu terminal fonts to patched nerd fonts

The patched fonts cannot be seen in Ubuntu terminal profile settings, thus we have to change the system mono fonts to patched fonts.

  1. Install GNOME Tweaks
  2. Set the system monospace font to your nerd font
  3. In the Terminal's Font Preference, I leave the Custom Font option unchecked, .i.e use system font.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment