On Tuesday, May 10, 2011 09:27:21 Nathan Neff wrote:
> I'm using a plugin (BufExplorer) that maps <leader>be,
> <leader>bs, etc. The BufKill
> plugin also maps quite a few things to <leader>bX
> I want <leader>b only (no other <leader>bX mappings) so that
> there's no delay when I type <leader>b.
> What's the best way to unmap or turn off these mappings?
> I've looked for a switch or options in BufExplorer to turn off
> these mappings, but there is none.
> I realize that I can comment out the mappings, but that feels
> hacky, and if there's an upgrade, I'll
> have to do it again.
> Is there a "standard" way to undo mappings that are created by
> plugins? For example, should I
> use an "after" script to undo these mappings?
the standard way, i believe, and i'm surprised this hasn't
come up yet in this discussion is to put
let g:no_plugin_maps = 1
in your .vimrc
granted, there's a miniscule chance the global is supported in
this venerable old plugin, but if it isn't it should be, and
the author should be requested to put it in
also, this will remove the maps from other plugins that do
support it (which you can add back yourself if you use them)
:helpgrep no_plugin_maps
returns 3 hits, the first in filetype.txt and the other 2 in
usr_41.txt describing how to support the option in your newly
created plugin
sc
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php