From 3601cdd9b978876ad76a05485e5580aa1124ad21 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 10 Feb 2022 15:37:20 +0100 Subject: vim: improve cscope mapping --- .vimrc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index f002a86..4b239cd 100644 --- a/.vimrc +++ b/.vimrc @@ -8,6 +8,8 @@ filetype plugin on filetype plugin indent on let mapleader = "," +set guifont=6x13:h13 + set rtp+=/opt/homebrew/opt/fzf let g:fzf_preview = 'cat {}' @@ -77,3 +79,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