From 1e1a1087f799632c021af612eb3c919cf1143237 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 10 Feb 2022 15:27:15 +0100 Subject: vim: improve cscope mappings --- .vimrc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.vimrc b/.vimrc index 8972385..8faef1d 100644 --- a/.vimrc +++ b/.vimrc @@ -77,3 +77,25 @@ noremap :bd noremap o :!open & noremap :tag noremap :Files + +""""""""""""" My cscope/vim key mappings + " + " The following maps all invoke one of the following cscope search types: + " + " 's' symbol: find all references to the token under cursor + " 'g' global: find global definition(s) of the token under cursor + " 'c' calls: find all calls to the function name under cursor + " 't' text: find all instances of the text under cursor + " 'e' egrep: egrep search for the word under cursor + " 'f' file: open the filename under cursor + " 'i' includes: find files that include the filename under cursor + " 'd' called: find functions that function under cursor calls + +noremap s :cs find s =expand("") +noremap g :cs find g =expand("") +noremap c :cs find c =expand("") +noremap t :cs find t =expand("") +noremap e :cs find e =expand("") +noremap i :cs find i =expand("") +noremap f :cs find f =expand("") +noremap d :cs find d =expand("") -- cgit v1.2.3