vim: fix binding for cscope

C-s suspend the terminal ....
This commit is contained in:
Mathieu Maret 2022-07-12 14:22:32 +02:00
parent 2a2f733090
commit ff6664c54e
1 changed files with 9 additions and 9 deletions

View File

@ -52,15 +52,15 @@ if has("cscope")
" go to calls with F7 and split with shift+F7
nmap <F7> :cscope find c <C-R>=expand("<cword>")<CR><CR>
nmap <S-F7> :scscope find c <C-R>=expand("<cword>")<CR><CR>
" go to ... with 'ctrl+s letter' and go back with ctrl+t
nmap <C-s>s :cscope find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-s>g :cscope find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-s>c :cscope find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-s>t :cscope find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-s>e :cscope find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-s>f :cscope find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-s>i :cscope find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <C-s>d :cscope find d <C-R>=expand("<cword>")<CR><CR>
" go to ... with 'ctrl+g letter' and go back with ctrl+t
nmap <C-g>s :cscope find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-g>g :cscope find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-g>c :cscope find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-g>t :cscope find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-g>e :cscope find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-g>f :cscope find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-g>i :cscope find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <C-g>d :cscope find d <C-R>=expand("<cword>")<CR><CR>
" split to ... with 'ctrl+space letter'
nmap <C-@>s :scscope find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>g :scscope find g <C-R>=expand("<cword>")<CR><CR>