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>

Reply via email to