jas0nhuang

Vim Locale Setting Debug - on Pi and RHEL 8

在 Pi上設定語系支援

在 Raspberry Pi上用 Vim,從 Github抓下來 virmrc檔之後面每次開啟 Vim都會報錯:

E197: Cannont set language to "zh_TW.UTF-8"

股溝大嬸又一次解決了問題,會報錯的原因就是 Pi語系設定的問題,只要使用 Pi上面的設定工具:

sudo raspi-config

然後在 locale setting的地方選擇語系為:”zh_TW.UTF-8”就好了。

On RHEL 8

  1. Set up the system locale by typing:

    localectl set-locale LANG=zh_TW.UTF-8
  2. Install langpacks

    dnf install langpacks-zh_TW

SIMPLE!