diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2013-11-14 15:47:34 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2013-11-14 15:47:34 +0100 |
commit | 3c60675e6489b67c39534b2566907e38ea9dbc02 (patch) | |
tree | 3926144e0149998c9246cab009960de6e43d8877 | |
parent | 511764e729bd65790f64565ceb712c13b393666a (diff) |
[Cscope] new bindings
-rw-r--r-- | vimrc | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -130,8 +130,20 @@ elseif has("cscope") " cscope macros nmap <ESC>c :execute CscopeSearch(expand("<cword>"))<CR> - nmap <ESC>f :execute CscopeSearch(expand("<cfile>"))<CR> - nmap <ESC>% :execute CscopeSearch(expand("%:t"))<CR> + + " search definitions of word under cursor + nmap <ESC>g :cs find g <cword><CR> + nmap <ESC>S :cs find s <cword><CR> + + " search file under cursor + "nmap <ESC>f :execute CscopeSearch(expand("<cfile>"))<CR> + nmap <ESC>F :execute CscopeSearch(expand("<cfile>"))<CR> + nmap <ESC>f :cs find f <cfile><CR> + + " search files #including current file + "nmap <ESC>% :execute CscopeSearch(expand("%:t"))<CR> + nmap <ESC>% :cs find i %:t<CR> + nmap <ESC>r :execute CscopeSearch(input("Rechercher : "))<CR> endif endif |