如何在Neovim打开时删除“警告:无法设置语言环境类别...”?

时间:2019-09-25 12:58:24

标签: neovim

Warning: Failed to set locale category LC_NUMERIC to en_IT.
Warning: Failed to set locale category LC_TIME to en_IT.
Warning: Failed to set locale category LC_COLLATE to en_IT.
Warning: Failed to set locale category LC_MONETARY to en_IT.
Warning: Failed to set locale category LC_MESSAGES to en_IT.
Warning: Failed to set locale category LC_NUMERIC to en_IT.
Warning: Failed to set locale category LC_TIME to en_IT.
Warning: Failed to set locale category LC_COLLATE to en_IT.
Warning: Failed to set locale category LC_MONETARY to en_IT.
Warning: Failed to set locale category LC_MESSAGES to en_IT.

2 个答案:

答案 0 :(得分:3)

如果要添加.bash_profile,.zprofile:

#Warning: Failed to set locale category LC_*** to en_UA.
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

然后,以下命令将显示结果输出:

locale

答案 1 :(得分:1)

我建议使用空配置运行Neovim:

vim -u NONE

然后查看此行为是否仍然存在。如果是这样,您的Neovim安装或文件系统可能有问题。

如果问题消失,请注释掉所有插件和autocmds,然后逐一重新启用它们。冲洗并重复直到再次遇到问题。然后,您将找到导致设置的设置或插件。