每次我编写新的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用户,我在Windows10下使用Python8.0。我通过搜索互联网建立了我的gVim开发环境,并通过Vundle安装了YouCompleteMe插件,但对我来说,现在自己编译YCM太难了。
发布于 2016-10-12 23:48:01
YCM依赖于ycmd
来完成实际工作。ycmd
是一个在后台运行的已编译服务,因此您必须编译它才能使其工作。
基本安装步骤包括打开适用于您的操作系统的shell /命令行,cd
-ing到YouCompleteMe的vim插件目录,然后在那里运行./install.py
来编译它。如果您需要Python语言以外的其他语言,请运行./install.py --help
并查找您需要添加的任何其他标志,以打开对您要使用的语言的支持。
以上假设您已经阅读了YCM的安装指南,并且已经安装了所需的依赖项。有两个与你的案例相关的指南,它们相当详细,写得很清楚:
(如果前者不起作用,可以解决任何问题)
发布于 2018-06-19 11:25:45
对于错误,如
Error detected while processing BufRead Auto commands for"*.py":
E518:Unknow option:set
E28:No such highlight group name: BadWhitespace
将|添加到set xxx
末尾
au BufNewFile,BufRead *.js,*.html,*.css,*.vue
\ set tabstop=2 |
\ set softtabstop=2 |
\ set shiftwidth=2
设置
"Flagging Unnecessary Whitespace
highlight BadWhitespace ctermbg=red guibg=darkred
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
https://stackoverflow.com/questions/40002791
复制相似问题