On May 19, 9:51 am, Raúl Núñez de Arenas Coronado <[email protected]>
wrote:
>
> An obvious solution is to call the function with a parameter, indicating
> whether it was called from normal mode or using <C-\><C-O> from insert
> mode, but I don't know if that is a good solution or if a more elegant
> way exists.
>
> Which is the preferred way of doing such kind of discrimination?
>
:help mode() shows my preferred way at least :-)
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---