Gentoo Archives: gentoo-science

From: P Purkayastha <ppurka@×××××.com>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] [patch] system-wide install of debug_gap.vim can not be overridden
Date: Tue, 07 Jun 2011 04:19:58
Message-Id: op.vwot97cjh4k6zf@localhost
In Reply to: Re: [gentoo-science] [patch] system-wide install of debug_gap.vim can not be overridden by Francois Bissey
1 On Tue, 07 Jun 2011 03:18:51 +0800, Francois Bissey
2 <fbissey@××××××××××××.nz> wrote:
3
4 >> Hi,
5 >>
6 >> I installed sage and also gap via the sage-for-gentoo overlay on a
7 >> Gentoo linux system (64 bit installation). It turned out that gap
8 >> installed a plugin /usr/share/vim/vimfiles/plugin/gap_debug.vim where
9 >> some keybindings are defined to help debug gap programs.
10 >>
11 >> First, I think this file should go under
12 >> /usr/share/vim/vimfiles/ftplugin directory since it applies only to gap
13 >> files. Secondly, the files define some keybindings without allowing for
14 >> the user to override those keybindings in ~/.vimrc.
15 >>
16 >> I am attaching a patch which defines a global vim variable. If the user
17 >> sets that variable in ~/.vimrc, then this gap plugin will not be read.
18 >> This is one way I think the plugin can be made to not supersede user
19 >> settings.
20 >>
21 >> If there is some other way of overriding that plugin file, please let me
22 >> know.
23 >>
24 > Hi,
25 >
26 > thanks for the info. It looks like you have found something that is
27 > installed
28 > by "automagic". Not being a fan of vi I don't have it installed and that
29 > vim
30 > file is not installed here. We may need to put it under useflag control.
31 > I think we may adopt your patch until someone more knowledgeable in vim
32 > tell us that's the wrong way of doing things.
33 >
34 > Francois
35 >
36
37 Hi Francois,
38
39 I am not surprised that the file debug_gap.vim is not installed in your
40 system. The installation of this file is handled by the vim-syntax
41 useflag. This useflag also handles the installation of other useful vim
42 files.
43
44 One option would be to introduce the debug useflag for gap and install
45 this debug_gap.vim file if both vim-syntax and debug flags are on. And,
46 during the src_prepare apply the patch to debug_gap.vim. I can provide you
47 an updated ebuild if you so desire.

Replies