From 62d48a0daa800127f835d47b8ead3e68ae08b3a2 Mon Sep 17 00:00:00 2001
From: Max Christian Pohle
Date: Fri, 26 May 2017 17:13:00 +0200
Subject: Minor changes. Defined register @c as shortcut for cscope

---
 vimrc-full | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'vimrc-full')

diff --git a/vimrc-full b/vimrc-full
index b32d470..0521473 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -389,11 +389,11 @@ end
 
 if has('cscope') " compiled with cscope support?
   " http://vim.wikia.com/wiki/Cscope
-  set cscopetag         | " CTRL-] uses cscope instead of tags to search for the symbol
+  set cscopetag         | " CTRL-] uses cscope first, then ctags
   set cscopeverbose
 
   if has('quickfix')
-    set cscopequickfix=s-,c-,d-,i-,t-,e-
+    set cscopequickfix=s+,c+,d+,i+,t+,e+
   endif
 
   cnoreabbrev csa cs add
@@ -404,6 +404,7 @@ if has('cscope') " compiled with cscope support?
   cnoreabbrev csh cs help
 
   command! -nargs=0 Cscope cs add $VIMSRC/src/cscope.out $VIMSRC/src
+  let @c = ":cs find s <cword>"
 endif
 
 " GUI_VERSION:
@@ -569,8 +570,8 @@ if has("autocmd")
     " grep all buffers for a given string and return result in a quickfix window
     let @q = ":cex [] | bufdo vimgrepadd /foo/g % | cw"
 
-    " change to the current working directory
-    let @c = ":lcd %:p:h"
+    " change to the current working directory (p like pwd)
+    let @p = ":lcd %:p:h" 
 
     " exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s)
     nnoremap Q !!$SHELL<CR>
-- 
cgit v1.2.3