简体   繁体   English

cscope无法使用.vimrc文件中的快捷方式

[英]cscope not working with shortcuts in .vimrc file

I am trying to add shortcuts to cscope usage by adding the following statements in .vimrc file. 我试图通过在.vimrc文件中添加以下语句来为cscope使用添加快捷方式。

" cscope mappings
if has("cscope")
nmap <C-\>s :scs find s <C-R>=expand("<cword>")<CR><CR>
endif

I sourced the file using :so ~/.vimrc in the vim application. 我在vim应用程序中使用:so ~/.vimrc来获取文件。

However, when i click Ctrl+\\ and s my terminal hangs. 但是,当我单击Ctrl+\\并且s挂起时。 Please help. 请帮忙。 My shell is /usr/local/bin/tcsh 我的shell是/usr/local/bin/tcsh

Thanks 谢谢

Chidambaram 奇丹巴拉姆

The reason it hangs might be because you are not pressing the mapping correctly. 它挂起的原因可能是因为您没有正确按下映射。 Press ctrl+\\ then s .But you might be pressing ctrl+s that is causing the hang. 按ctrl + \\然后按s,但是您可能按了导致挂起的ctrl + s。 To make sure if it's ctrl+s that is the culprit try ctrl+q see if terminal restores then you can proceed. 要确定是否是ctrl + s是罪魁祸首,请尝试ctrl + q查看终端是否恢复,然后可以继续进行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM