Saluton Ben :) On Tue 19 May 2009 19:55 +0200, Ben Fritz <[email protected]> dixit: > 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.
I thought that using C-R reverted to normal mode! Thanks for pointing, this may be the solution :)) I didn't even bother to try because I assumed that using the expression register with C-R switched to normal during the evaluation of the function. > You just need to make sure the function returns a null string! Just curious: why has the function to return null? Is it a requirement or just that usually you don't want anything inserted after using the expression register? > 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... I'll test this as soon as possible. Thanks A LOT, Ben :)))) -- Raúl "DervishD" Núñez de Arenas Coronado Linux Registered User 88736 | http://www.dervishd.net It's my PC and I'll cry if I want to... RAmen! --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
