VIM中的HTML和CSS文件没有自动完成(YouCompleteMe) [英] No auto-complete on HTML and CSS files in VIM (YouCompleteMe)
问题描述
出于某种原因,我没有在html和css文件上自动完成。所有其他语言都可以正常工作,例如JS,Ruby或Python。
我今天花了近2小时试图修复它,但无济于事。我使用 Vundle
和 YouCompleteMe
来完成所有这些。你可以看看我的 .vimrc
文件 https ://gist.github.com/comatory/73aacac1b0249b8c1c55 。
For some reason, I get no autocomplete on html and css files. All works well with other languages, for example JS, Ruby or Python.
I've spent close to 2h today trying to fix it but to no avail. I use Vundle
and YouCompleteMe
to do all of this. You can have a look at my .vimrc
file here https://gist.github.com/comatory/73aacac1b0249b8c1c55.
我在OS X 10.10.5上,我的Vim版本是7.4(通过安装自制)。我也使用Macvim,但没关系,它们都不起作用。
I'm on OS X 10.10.5 and my Vim version is 7.4 (installed via Homebrew). I also use Macvim but it doesn't matter, it doesn't work in either of them.
推荐答案
检查粘贴
设置
:verbose set paste?
会显示此缓冲区的当前值以及哪个插件最后设置它。
will show you the current value for this buffer as well as which plugin set it last.
根据我的经验,如果设置 paste
,则不会发生完成。禁用
In my experience, completion doesn't happen if paste
is set. Disable with
:set nopaste
这篇关于VIM中的HTML和CSS文件没有自动完成(YouCompleteMe)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!