Bug 844843 - /etc/vimrc adds cscope db in a wrong way
Summary: /etc/vimrc adds cscope db in a wrong way
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: vim
Version: 17
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-01 02:26 UTC by xiali
Modified: 2013-05-14 14:07 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-05-14 14:07:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.