Sunday, January 15, 2017

Re: How to modify the trigger key in the snip mate?

2017-01-15 17:32 GMT+03:00 Zhe Lee <imlegendlzz@gmail.com>:
> The mappings SnipMate uses can be customized with the |:map| commands. For
> example, to change the key that triggers snippets and moves to the next
> tab stop, >
>
> :imap <C-J> <Plug>snipMateNextOrTrigger
> :smap <C-J> <Plug>snipMateNextOrTrigger
>
>
> I check the doc, and find the lines above,
>
> but when I press c-j in vim the literaly "<Plug>snipMateNextOrTrigger" text was inserted in the vim. why is that?

Did you use literally `:imap` or used `:inoremap` instead?

>
> --
> --
> 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
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: