On May 19, 12:33 pm, Raúl Núñez de Arenas Coronado <[email protected]>
wrote:
>
> Thanks anyway, Ben :) If you know how to call a function from an "imap"
> without using <C-O>:call, please tell me because I'm afraid I'm stuck
> with <C-\><C-O> O:)
>

Sorry that I missed this detail! It is possible to call a function
from insert mode using the expression register. You just need to make
sure the function returns a null string! Then, the mapping looks like
this:

imap <Enter> <C-R>=SuperEnter()<CR>

I think I picked up that clever trick from a tip as well, though I
certainly don't know which one! It may also have been a post on this
list...
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to