On Sun, 22 Nov 2009 18:44:56 -0800
Gary Johnson wrote:
>
>On 2009-11-22, Tarlika Elisabeth Schmitz wrote:
>> I would like to insert the output of a command at cursor position
>> (either in normal or insert mode) and map the key sequence for this.
>> [...]
>
>The expression [...] system(), which could be used to execute an
>external command such as zenity, [...]
>
>Here's a command that will map that to F4:
>
> :imap <F4> <C-R>=substitute(system("zenity --calendar"), "\n", "",
> "")<CR>
Thanks for your help, Christian + Gary. I can't tell you how often I
need this per day!
It seems a bit of a phylosophical question whether to use :iab
or :imap. When do you tend to use iab/imap?
--
Best Regards,
Tarlika Elisabeth Schmitz
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---