Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决遇到的问题:E197: 不能设定语言为 "zh_CN.gb2312" ;Taglist: Exuberant ctags (http://ctags.sf.net) not found in PATH. Plugin is not loaded. #59

Open
Livitor opened this issue Apr 13, 2024 · 2 comments

Comments

@Livitor
Copy link

Livitor commented Apr 13, 2024

问题1:
处理 /home/xx/.vimrc时发生错误:
第 43 行:
E197: 不能设定语言为 "zh_CN.gb2312"

解决方案(一行一行运行):
cd /var/lib/locales/supported.d/
sudo vi zh-hans (用管理员权限打开zh-hans)
添加以下两行(原有的不要删):
zh_CN.GBK GBK
zh_CN GB2312
按Esc后:wq! 保存退出
sudo dpkg-reconfigure --force locales
选择zh_CN.GBK
之后等运行zh_CN.UTF-8... 结束就可以了

问题2:
Taglist: Exuberant ctags (http://ctags.sf.net) not found in PATH. Plugin is not loaded.

解决方案:
在Powervim/.vimrc文件中(最下面)添加(中文也要添加):
let Tlist_Show_One_File=1 "不同时显示多个文件的tag,只显示当前文件的
let Tlist_Exit_OnlyWindow=1 "如果taglist窗口是最后一个窗口,则退出vim
let Tlist_Ctags_Cmd="/usr/bin/ctags" "将taglist与ctags关联

@Livitor Livitor closed this as completed Apr 13, 2024
@Livitor Livitor closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2024
@Livitor Livitor reopened this Apr 13, 2024
@Lighti67
Copy link

我的linux中没有找到对应的locals文件夹,最后采用了
locale-gen zh_CN这个命令才成功解决第一个问题。
第二个问题我发现直接安装包就可以解决,如果出现多个版本的包需要自己进行手动选择。我的命令如下
sudo apt-get install exuberant-ctags

@O2andsAnoxia
Copy link

第一个问题也可以改.vimrc
vim ~/.vimrc
修改set langmenu 和 language message为:
set langmenu=zh_CN.UTF-8
set language message zh_CN.UTF-8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants