问题描述
当我输入一些算术表达式(比如 val1 / val2
)时,我使用单斜杠( /
),我的vim将它视为多行注释( / *
)。结果如下:
现在我可以通过在该行末尾输入; /
来关闭它(它会关闭注释) ,但它仍然很烦人,我希望我的vim能够正常运行:)。
我试过使用另一个vim语法高亮显示时髦包,在我的.vimrc中试过:filetype plugin off
,我尝试用我的设置清除vim并重新安装它,问题仍然存在。
这对我找到我的解决方案帮助很大:
when I do the single slash (/
) when typing some arithmetic expression (like val1 / val2
), my vim treats it as a comment for multiple lines (/*
). The result looks like:
I now I can escape it by typing ;/
at the end of that line (which closes the comment), but it is still annoying and I'd like for my vim to behave properly :).
I've tried using another vim syntax highlighting package for groovy, I've tried :filetype plugin off
in my .vimrc, I've tried purging vim with my settings and reinstalling it and the problem is still there.
This helped mi a lot with finding my solution:Groovy syntax highlighting in Vim 7.4
这篇关于Vim在Groovy中错误的语法突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!