Red Hat Bugzilla – Bug 844843
/etc/vimrc adds cscope db in a wrong way
Last modified: 2013-05-14 10:07:20 EDT
Description of problem:
/etc/vimrc invokes `cs add cscope.out`(without the path argument), it assumes the curdir never changes. so when you change curdir(autochdir or other operation), the db connection lost.
Version-Release number of selected component (if applicable):
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 18 2012 09:17:13)
Included patches: 1-415, 417-556
Steps to Reproduce:
set autochdir, and use cscope jump into other path, it fails the second time
I strongly recommend cleaning up the /etc/vimrc, vim users have their own rc. /etc/vimrc makes things wrong.
I've added the path to cscope.out, but will let the rest of /etc/vimrc keep as is. The goal is to have some reasonable defaults and users can overwrite those defaults if they wish to do so in their own .vimrc