From 3c60675e6489b67c39534b2566907e38ea9dbc02 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 14 Nov 2013 15:47:34 +0100 Subject: [Cscope] new bindings --- vimrc | 16 ++++++++++++++-- 1 file 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 c :execute CscopeSearch(expand("")) - nmap f :execute CscopeSearch(expand("")) - nmap % :execute CscopeSearch(expand("%:t")) + + " search definitions of word under cursor + nmap g :cs find g + nmap S :cs find s + + " search file under cursor + "nmap f :execute CscopeSearch(expand("")) + nmap F :execute CscopeSearch(expand("")) + nmap f :cs find f + + " search files #including current file + "nmap % :execute CscopeSearch(expand("%:t")) + nmap % :cs find i %:t + nmap r :execute CscopeSearch(input("Rechercher : ")) endif endif -- cgit v1.2.3