Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-science
Navigation:
Lists: gentoo-science: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: support@..., gentoo-science@g.o
From: P Purkayastha <ppurka@...>
Subject: [patch] system-wide install of debug_gap.vim can not be overridden
Date: Sun, 05 Jun 2011 17:48:57 +0800
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.

    Thanks and regards,
      Punarbasu.
--- debug_gap.vim	2011-06-05 17:29:33.473985132 +0800
+++ debug_gap.vim.new	2011-06-05 17:35:51.686985062 +0800
@@ -6,6 +6,12 @@
 "
 " $Id: debug.vim,v 1.1 2003/04/07 17:06:17 gap Exp $
 "
+if exists("g:debug_gap")
+    finish
+endif
+
+let g:debug_gap=1
+
 map <f2> OError("Breakpoint #<esc>"apa");<esc>
 map <f3> OPrint("Watchpoint #<esc>"apa\n");<esc>
 map <f4> ODEBUG_LIST[<esc>"apa].count := DEBUG_LIST[<esc>"apa].count - 1;<cr>if DEBUG_LIST[<esc>"apa].count <= 0 then Error("Breakpoint #<esc>"apa"); fi;<esc>
Replies:
Re: [patch] system-wide install of debug_gap.vim can not be overridden
-- Francois Bissey
Navigation:
Lists: gentoo-science: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
sci-libs/scipy-0.9.0-r1 undefined symbol: clapack_sgesv
Next by thread:
Re: [patch] system-wide install of debug_gap.vim can not be overridden
Previous by date:
Re: sci-libs/scipy-0.9.0-r1 undefined symbol: clapack_sgesv
Next by date:
Re: [patch] system-wide install of debug_gap.vim can not be overridden


Updated Jul 05, 2012

Summary: Archive of the gentoo-science mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.