Commits

Anonymous committed 8f578c2

fix sed, actually have __HOME__ in vimrc, load CSCOPE_DB if no cscope connections found

  • Participants
  • Parent commits f384d5c

Comments (0)

Files changed (3)

 ln -fs "$HOME/etc/colordiffrc"       "$HOME/.colordiffrc"
 ln -fs "/dev/shm"                    "$HOME/tmp"
 
-sed -i "s/__HOME__/$HOME/" "$HOME/etc/vim/vimrc" # for xdsproj...
+sed -i "s|__HOME__|$HOME|" "$HOME/etc/vim/vimrc" # for xdsproj...

vim/plugin/autoload_cscope.vim

         let &csverb = save_csvb
       endif
       "
+    elseif !empty($CSCOPE_DB)
+      cs add $CSCOPE_DB
     else " No cscope database, undo things. (someone rm-ed it or somesuch)
       call s:Unload_csdb()
     endif
-set runtimepath+=/home/egates/etc/vim
+set runtimepath+="__HOME__/etc/vim"
 
 " plugins
 call pathogen#infect('~/etc/vim/bundle')