Menu

#10 Fedora /etc/vimrc conflicts with our vim tutorial

closed-invalid
None
5
2007-02-21
2007-01-06
John Pye
No

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

Discussion

  • Hans-Bernhard Broeker

    • assigned_to: nobody --> broeker
    • status: open --> closed-invalid
     
  • Hans-Bernhard Broeker

    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.

     
  • John Pye

    John Pye - 2007-01-06

    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

     
  • John Pye

    John Pye - 2007-01-06

    Logged In: YES
    user_id=849068
    Originator: YES

    (reopened, hoping for comments on how to fix the "ctrl-\ s" functionality)

     
  • John Pye

    John Pye - 2007-01-06
    • status: closed-invalid --> open-invalid
     
  • Hans-Bernhard Broeker

    • summary: please update vim instructions --> Fedora /etc/vimrc conflicts with our vim tutorial
     
  • Hans-Bernhard Broeker

    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.

     
  • Hans-Bernhard Broeker

    • status: open-invalid --> closed-invalid
     
  • Neil Horman

    Neil Horman - 2007-02-21

    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.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.