我正在尝试将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设置完美无缺 谢谢 Satwik
答案 0 :(得分:0)
该错误来自您的shell,而不是Vim。比较:
$ if has("cscope")
-bash: syntax error near unexpected token `"cscope"'
与
:cscope
E492: Not an editor command: cscope
您需要在Vim内部获取插件!