Yue Wu schrieb:
> On Sat, 10 Jan 2009 22:03:02 +0800, Andy Wokula <[email protected]> wrote:
>
>> Yue Wu schrieb:
>>> As title.
>>>
>> :h i_ctrl-r_=
>>
>
> No, it isn't what I want, for example, how do you avoid triggering
> insertLeav/Enter to save current file via :w?
you wanted to call a function iirc ...
a function can wrap any Ex command.
e.g.
func! FuncExec(cmd)
exec a:cmd
return ""
endfunc
imap <silent> <F2> <C-R>=FuncExec("w")<CR>
--
Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---