cscope在使用vim键盘映射后显示错误

cscope在使用vim键盘映射后显示错误,vim,cscope,Vim,Cscope,我使用中的键盘映射在cscope中拥有键盘快捷键。我的地图是 nmap <C-s> :cs find s <C-R>=expand("<cword>")<CR><CR> nmap <C-g> :cs find g <C-R>=expand("<cword>")<CR><CR> nmap <C-c> :cs find c <C-R>=expa

我使用中的键盘映射在cscope中拥有键盘快捷键。我的地图是

 nmap <C-s> :cs find s <C-R>=expand("<cword>")<CR><CR>    
 nmap <C-g> :cs find g <C-R>=expand("<cword>")<CR><CR>
 nmap <C-c> :cs find c <C-R>=expand("<cword>")<CR><CR>
 nmap <C-x> :cs find t <C-R>=expand("<cword>")<CR><CR>
 nmap <C-e> :cs find e <C-R>=expand("<cword>")<CR><CR>
 nmap <C-f> :cs find f <C-R>=expand("<cfile>")<CR><CR>
 nmap <C-i> :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
 nmap <C-d> :cs find d <C-R>=expand("<cword>")<CR><CR>
nmap:cs find s=expand(“”)
nmap:cs find g=expand(“”)
nmap:cs find c=expand(“”)
nmap:cs find t=expand(“”)
nmap:cs find e=expand(“”)
nmap:cs find f=expand(“”)
nmap:cs find i^=expand(“”)$
nmap:cs find d=expand(“”)
当我在光标位于符号上的情况下按Ctrl-g时,它会转到正确的定义,但会显示此错误。 E259:未找到cscope查询的匹配项


我已经找到了答案,只是把它贴出来,这样别人就不会像我那样浪费时间。

你需要检查nmap之后是否有额外的选项卡。删除任何额外的标签解决了我的问题。sourceforge站点上的cscope_maps.vim文件中有它们。还要确保“=”符号两侧没有空格,这也会导致此类错误

你应该把它作为一个答案,而不是评论发表。:-)