From 7d7310f4157dd6768ad3120dee41b52f9b03ed3c Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Mon, 5 Apr 2010 22:58:23 -0700 Subject: [PATCH] Some cscope fixes --- .bashrc | 2 ++ .vim/plugin/cscope_settings.vim | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index b477840..c71388c 100644 --- 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 diff --git a/.vim/plugin/cscope_settings.vim b/.vim/plugin/cscope_settings.vim index 86732b9..83dca8a 100644 --- a/.vim/plugin/cscope_settings.vim +++ b/.vim/plugin/cscope_settings.vim @@ -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 -- 1.6.6.rc1.39.g9a42