nmap key maps not working with Vim/Cscope

Viewed 8813

I'm using vim(7.3) with cscope in ubuntu. :cs find commands work fine, but I want to use some key bindings, so I download cscope_maps.vim and install it according to the tutorial here. However, no matter which place I put the vim file in, none of the key maps defined in the file work! For example I got one of the mapping as :

nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR>

When I moved the cursor on a c symbol and pressed [CTRL]+[\]+s, nothing happened!

Does anyone know the reason and how to solve it?

Thanks.

5 Answers

By default Vim will only wait 1 second for each keystroke in a mapping. It may be too short for these combination keys.

After I add following lines into vimrc, "CTRL + \" works.

set timeoutlen=4000 " in milliseconds
Related