From 75d59f4c076fcb899428ac263d4095469b4fbc88 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 13 Apr 2022 00:20:39 +0800 Subject: Add keymap of cscope in vim --- .vim/after/plugin/cscope.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .vim/after/plugin/cscope.vim (limited to '.vim/after') diff --git a/.vim/after/plugin/cscope.vim b/.vim/after/plugin/cscope.vim new file mode 100644 index 0000000..8215e1d --- /dev/null +++ b/.vim/after/plugin/cscope.vim @@ -0,0 +1,14 @@ +set cscopequickfix=s-,c-,d-,i-,t-,e- +set cscopetag + +nmap css :cs find s =expand("") +nmap csg :cs find g =expand("") +nmap csc :cs find c =expand("") :copen +nmap cst :cs find t =expand("") :copen +nmap cse :cs find e =expand("") :copen +nmap csf :cs find f =expand("") +nmap csi :cs find i ^=expand("")$ +nmap csd :cs find d =expand("") +nmap csa :cs find a =expand("") + +nmap cs :cs find -- cgit v1.2.3