Bug 844843

Summary: /etc/vimrc adds cscope db in a wrong way
Product: [Fedora] Fedora Reporter: xiali
Component: vimAssignee: Karsten Hopp <karsten>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 17CC: karsten, kzhang
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-14 14:07:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description xiali 2012-08-01 02:26:59 UTC
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


How reproducible:
100%


Steps to Reproduce:
set autochdir, and use cscope jump into other path, it fails the second time


Additional info:

I strongly recommend cleaning up the /etc/vimrc, vim users have their own rc. /etc/vimrc makes things wrong.

Comment 1 Karsten Hopp 2012-08-28 12:23:11 UTC
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