Some cscope fixes
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 6 Apr 2010 05:58:23 +0000 (22:58 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 6 Apr 2010 05:58:23 +0000 (22:58 -0700)
.bashrc
.vim/plugin/cscope_settings.vim

diff --git a/.bashrc b/.bashrc
index b477840..c71388c 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -14,6 +14,8 @@ case $- in
        alias wget='wget --user-agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"'
        alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
        export PATH="${PATH}:${HOME}/cmccabe-bin"
+       export EDITOR="/usr/bin/vim"
+       export CSCOPE_EDITOR="${EDITOR}"
        ;;
 *)
        # non-interactive shell
index 86732b9..83dca8a 100644 (file)
@@ -6,9 +6,9 @@ if has("cscope")
     set csto=0
 
     " add any cscope database in current directory
-    if filereadable("cscope.out")
-        cs add cscope.out
-    endif
+    "if filereadable("cscope.out")
+        "cs add cscope.out
+    "endif
 
     " show msg when any other cscope db added
     set cscopeverbose