garbas/vim-snipmate — Issue #82: Problem using alternate key mapping
Author: radicalbit
Created: 2012-01-11 20:25:32+00:00
State: open

There's a problem in the keybinding code that prevents me from mapping snipmate to another key.

If I put let g:snips_trigger_key='' in my vimrc, then if I try to use to trigger the snippet, instead of the snippet I get an autocomplete menu. I assume it is having trouble with SuperTab, however, the reason I'm remapping snipmate is to avoid conflicts.

If I type :imap to list all the bindings, I find these snipmate lines:
i * =snipMate#BackwardsSnippet()
i * =snipMate#ShowAvailableSnips()

For some reason it is mapped to BackwardsSnippet instead. But, the command doesn't work anyway.

if I remove this line from after/plugin/snipmate.vim:
exec 'ino ' . g:snips_trigger_key_backwards . '> =snipMate#BackwardsSnippet()'

Then it works.
:imap
i * u=snipMate#TriggerSnippet()
(and the snippet comes out fine)

This works for me, as I don't need the reverse snippet binding, but it's not really a good solution to the problem.