我正在尝试将 cscope 设置与 vim 合并以获得类似 IDE 的功能。 我正在使用流行的 cscope_maps.vim 文件 http://cscope.sourceforge.net/cscope_maps.vim 为了获得这些设置。我将这些设置复制到我的 vimrc 文件中,并尝试获取它。 这就是我得到的结果。
syntax error near unexpected token `'cscope''
这是否意味着我的 Vim(版本 7.0)不支持 cscope ? 我该如何解决这个问题。 我还观察到我的 ctags 设置运行良好 谢谢 萨特维克
最佳答案
该错误来自您的 shell,而不是 Vim。比较:
$ if has("cscope")
-bash: syntax error near unexpected token `"cscope"'
与
:cscope
E492: Not an editor command: cscope
您需要在 Vim 中获取插件!
关于linux - 使用 vim 设置 cscope,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25003885/