在 vim 中使用 css_color 插件会导致全能补全不起作用
我在 vista 上使用 css_color.vim 脚本和 gvim 7.2 。由于这个脚本,我无法对我安装的 gvim 附带的 css 使用全能补全,如果我将 css.vim 文件重命名为 css.vim.bak 或其他名称,它就可以正常工作。
我通常使用
打开全能补全下拉菜单,但是使用 css.vim,当我点击
时,vim 似乎进入“临时”正常模式,我真的不知道它在做什么,但它绝对不会给我全方位完成下拉菜单。
我尝试在 css.vim 文件中搜索
但一无所获。我对 vim 脚本编写没有太多经验,因此感谢您的帮助。
I am using the css_color.vim script with gvim 7.2 on vista. Because of this script I am not able to use omni-completion for css that came with the gvim I installed, which works perfectly fine if I rename the css.vim file to css.vim.bak or something.
I usually open omni-completion drop down using <C-x><C-o>
, but with the css.vim, when I hit <C-x>
, vim seems to go in a "temporary" normal mode, I dont really know what it is doing, but it is definetely not giving me the omni-completion drop down.
I tried search for <C-x>
in the css.vim file but nothing. I dont have much experience with vim scripting, so any help appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想我找到了答案...评论脚本底部的 3 行似乎可以解决这个问题。我现在可以在 css 文件中使用全能补全以及此插件。
对于后来寻找此内容的任何人,这些是我评论的内容......
I think I found the answer... Commenting the 3 lines at the bottom of the script seems to fix this. I can now use omni-completion in css files along with this plugin.
For anyone that comes along looking for this later on, these are the lines I commented...
几个想法。
对于您的第一个问题,
请
关闭脚本并查找差异。您可能已将脚本放置在错误的目录中或其覆盖了系统范围的文件。
其次对于你的问题。运行
以查找 , map 的定义位置。查看 css 脚本,这些可能是单独的问题
Couple of ideas.
for your first issue
run
wtih the script on an off and look for differences. It's possible you've placed the script in the wrong directory or its overriding a system wide file.
Secondly for your , issue. run
to find where the , map has been defined. Looking at the css script it's possible these are separate issues