简体   繁体   中英

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.

" 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.

However, when i click Ctrl+\\ and s my terminal hangs. Please help. My shell is /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. To make sure if it's ctrl+s that is the culprit try ctrl+q see if terminal restores then you can proceed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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