gpt4 book ai didi

vim - Vim插件youcompleteme错误消息

转载 作者:行者123 更新时间:2023-12-04 00:34:30 24 4
gpt4 key购买 nike

每次我编写新的python源代码*.py时,都会出现以下错误消息:

Error detected while processing BufRead Auto commands for"*.py":
E518:Unknow option:set
E28:No such highlight group name: BadWhitespace

我该如何解决?

在键入此问题之前,我已根据 this post修改了 _vimrc文件,但错误消息仍然存在。更糟糕的是,还会出现另一个错误消息:
The ycmd server SHUT DOWN(restart with':YcmRestartSever').YCM core library not detected;you need to compile YCM before using it. Follow the instructions in the documentation.
我是Gvim的新用户,并且在Windows 10中使用gVim 8.0。我通过搜索Internet设置了python开发环境,并通过Vundle安装了YouCompleteMe插件,但是现在我自己编译YCM太困难了。

最佳答案

YCM依靠ycmd进行实际工作。 ycmd是在后台运行的已编译服务,因此您必须对其进行编译才能使其正常运行。

基本的安装过程包括打开操作系统的 shell 程序/命令行,将cd -ing到YouCompleteMe的vim插件目录并在其中运行./install.py进行编译。如果您需要Python以外的其他语言,请运行./install.py --help并查找您需要添加的所有其他标志,以启用对要使用的语言的支持。

以上假定您已阅读YCM的安装指南并已安装所需的依赖项。有两个与您的案例相关的指南,它们非常详细且写得很清楚:

  • Windows installation guide(以最佳情况提供)
  • Full installation guide(如果前者不起作用,则解决所有问题)
  • 关于vim - Vim插件youcompleteme错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40002791/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com