summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2013-11-14 15:47:34 +0100
committerHugues Hiegel <hugues.hiegel@qosmos.com>2013-11-14 15:47:34 +0100
commit3c60675e6489b67c39534b2566907e38ea9dbc02 (patch)
tree3926144e0149998c9246cab009960de6e43d8877
parent511764e729bd65790f64565ceb712c13b393666a (diff)
[Cscope] new bindings
-rw-r--r--vimrc16
1 files changed, 14 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index c398fee..d968a37 100644
--- a/vimrc
+++ b/vimrc
@@ -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