Support Requests item #1629235, was opened at 2007-01-05 22:27
Message generated for change (Comment added) made by nhorman
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=204664&aid=1629235&group_id=4664
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Closed
Resolution: Invalid
Priority: 5
Private: No
Submitted By: John Pye (jdpipe)
Assigned to: Hans-Bernhard Broeker (broeker)
Summary: Fedora /etc/vimrc conflicts with our vim tutorial
Initial Comment:
Hi there
The instructions for adding cscope support into Vim don't work for me on Fedora Core 5 (Vim 7.0).
It would be great if someone could revise/update the page here and add whatever changes are required for newer versions.
http://cscope.sourceforge.net/cscope_vim_tutorial.html
FWIW I get an error message from Vim when I run do as described:
$ vim -t WriteWhyNotFound
Error detected while processing /home/john/.vim/plugin/cscope_maps.vim:
line 42:
E568: duplicate cscope database not added
Press ENTER or type command to continue
Perhaps cscope support has been pulled into core for Vim 7.0, or something like that. But the "ctrl-\ s" thing doesn't work.
Cheers
JP
----------------------------------------------------------------------
Comment By: Neil Horman (nhorman)
Date: 2007-02-21 16:30
Message:
Logged In: YES
user_id=827328
Originator: NO
what package is cscope_maps.vim associated with? I just checked both the
cscope and vim-enhanced packages for fc6 and neither claims that file in
its file list.
----------------------------------------------------------------------
Comment By: Hans-Bernhard Broeker (broeker)
Date: 2007-01-06 08:40
Message:
Logged In: YES
user_id=27517
Originator: NO
> BUT I'm not getting the "ctrl-\ s" functionality.
Well, that's nothing we can help you with. It works just fine if I follow
the instructions on another system.
Fedora put that stuff in their /etc/vimrc --- it's they who have to
maintain it. When you tell them, be sure to include more details of *how*
it fails: error messages, crash dumps, whatever. Check what the ":map"
command shows: are there cscope mappings in there?
And maybe you should try this with a pristine vim (move /etc/vimrc out of
the way, or try the -u startup option), too.
----------------------------------------------------------------------
Comment By: John Pye (jdpipe)
Date: 2007-01-06 08:11
Message:
Logged In: YES
user_id=849068
Originator: YES
(reopened, hoping for comments on how to fix the "ctrl-\ s" functionality)
----------------------------------------------------------------------
Comment By: John Pye (jdpipe)
Date: 2007-01-06 08:10
Message:
Logged In: YES
user_id=849068
Originator: YES
Turns out that Fedora Core 5 includes some cscope stuff in /etc/vimrc.
Which gets loaded somehow.
BUT I'm not getting the "ctrl-\ s" functionality. And I don't immediately
see how I can do it. I guess I could chop off the top of that
cscope_maps.vim file?
FWIW, I note that on Ubuntu, the /etc/vim/vimrc file does *not* include
cscope stuff.
Cheers
JP
----------------------------------------------------------------------
Comment By: Hans-Bernhard Broeker (broeker)
Date: 2007-01-06 07:30
Message:
Logged In: YES
user_id=27517
Originator: NO
I don't think your conclusion that this failure must have been caused by
these instructions being for older versions of Vim is valid. I've just
tried them with Vim-7 (up to correction 122) on Cygwin, and they worked
out just fine.
That error message you got indicates to me that you probably have two
instances of cscope_maps.vim in your ~/.vim/plugin and/or ~/.vimrc. It
means that Vim won't add the same cscope database twice, so you probably
already have it integrated.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=204664&aid=1629235&group_id=4664
|