Francois Bissey | 6 Jun 2011 21:18
Picon

Re: [patch] system-wide install of debug_gap.vim can not be overridden

> 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

(Continue reading)

P Purkayastha | 7 Jun 2011 06:19
Picon

Re: [patch] system-wide install of debug_gap.vim can not be overridden

On Tue, 07 Jun 2011 03:18:51 +0800, Francois Bissey  
<fbissey <at> 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.
(Continue reading)

fbissey | 7 Jun 2011 06:37
Picon

Re: [patch] system-wide install of debug_gap.vim can not be overridden

Quoting P Purkayastha <ppurka <at> gmail.com>:

> On Tue, 07 Jun 2011 03:18:51 +0800, Francois Bissey
> <fbissey <at> 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 
(Continue reading)

Christopher Schwan | 7 Jun 2011 10:30
Picon
Picon
Favicon

Re: [patch] system-wide install of debug_gap.vim can not be overridden

Hi,

what do you think about completely dropping the file ?

On Tuesday 07 June 2011 06:37:51 fbissey <at> slingshot.co.nz wrote:
> Quoting P Purkayastha <ppurka <at> gmail.com>:
> > On Tue, 07 Jun 2011 03:18:51 +0800, Francois Bissey
> > 
> > <fbissey <at> 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.
> >> 
(Continue reading)

Francois Bissey | 7 Jun 2011 21:56
Picon

Re: [patch] system-wide install of debug_gap.vim can not be overridden

> Hi,
> 
> what do you think about completely dropping the file ?
> 
It's a bit drastic in my opinion. It sounds like something useful
if you are a vim user.

Francois


Gmane