public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
From: "P Purkayastha" <ppurka@gmail.com>
To: gentoo-science@lists.gentoo.org
Subject: Re: [gentoo-science] [patch] system-wide install of debug_gap.vim can not be overridden
Date: Tue, 07 Jun 2011 12:19:09 +0800	[thread overview]
Message-ID: <op.vwot97cjh4k6zf@localhost> (raw)
In-Reply-To: <201106070718.51540.fbissey@slingshot.co.nz>

On Tue, 07 Jun 2011 03:18:51 +0800, Francois Bissey  
<fbissey@slingshot.co.nz> wrote:

>> Hi,
>>
>>    I installed sage and also gap via the sage-for-gentoo overlay on a
>> Gentoo linux system (64 bit installation). It turned out that gap
>> installed a plugin /usr/share/vim/vimfiles/plugin/gap_debug.vim where
>> some keybindings are defined to help debug gap programs.
>>
>> First, I think this file should go under
>> /usr/share/vim/vimfiles/ftplugin directory since it applies only to gap
>> files. Secondly, the files define some keybindings without allowing for
>> the user to override those keybindings in ~/.vimrc.
>>
>> I am attaching a patch which defines a global vim variable. If the user
>> sets that variable in ~/.vimrc, then this gap plugin will not be read.
>> This is one way I think the plugin can be made to not supersede user
>> settings.
>>
>> If there is some other way of overriding that plugin file, please let me
>> know.
>>
> Hi,
>
> thanks for the info. It looks like you have found something that is  
> installed
> by "automagic". Not being a fan of vi I don't have it installed and that  
> vim
> file is not installed here. We may need to put it under useflag control.
> I think we may adopt your patch until someone more knowledgeable in vim
> tell us that's the wrong way of doing things.
>
> Francois
>

Hi Francois,

   I am not surprised that the file debug_gap.vim is not installed in your  
system. The installation of this file is handled by the vim-syntax  
useflag. This useflag also handles the installation of other useful vim  
files.

   One option would be to introduce the debug useflag for gap and install  
this debug_gap.vim file if both vim-syntax and debug flags are on. And,  
during the src_prepare apply the patch to debug_gap.vim. I can provide you  
an updated ebuild if you so desire.



  reply	other threads:[~2011-06-07  4:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-05  9:48 [gentoo-science] [patch] system-wide install of debug_gap.vim can not be overridden P Purkayastha
2011-06-06 19:18 ` Francois Bissey
2011-06-07  4:19   ` P Purkayastha [this message]
2011-06-07  4:37     ` fbissey
2011-06-07  8:30       ` Christopher Schwan
2011-06-07 19:56         ` Francois Bissey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.vwot97cjh4k6zf@localhost \
    --to=ppurka@gmail.com \
    --cc=gentoo-science@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox