电力线字体不适用于 vim/debian

powerline fonts doesn't work on vim/debian

我已经克隆了 powerfonts 的存储库并安装了它。我将 vim 配置为

let g:airline_powerline_fonts=1

但是它在 debian 上不起作用,即使我清理字体缓存并重新启动服务器。但它确实适用于我的 mac.

我想知道它有什么问题。我应该在 debian 上配置字体吗?

这是区域设置问题。

A locale is a set of language and cultural rules. These cover aspects such as language for messages, different character sets, lexicographic conventions, and so on. A program needs to be able to determine its locale and act accordingly to be portable to different cultures.

您可以使用这些环境变量设置语言

  • 语言
  • 语言
  • 语言
  • LC_COLLATE
  • LC_ALL

这种情况下,在.bashrc.zshrc.bash_profile中设置LANG = "en_US.UTF-8"即可解决问题。

或者您可以设置 LC_ALL="en_US.UTF-8"