On Tue, 14 Nov 2006, David Woodfall wrote:
> On (10:30 14/11/06), David Woodfall <[EMAIL PROTECTED]> put forth
> the proposition:
>
>> I would like to make a command that would insert at cursor todays
>> date, and also a command to insert some custom text.
[...]
> :command Date :read !date +%d-%b-%Y
>
> This prints xxd-xxb-xxY
>
> !date with no options works fine on it's own. I have tried putting
> the options in "" and '' but still no go.
You don't really need to call an external program. In any case, if
you want to insert the date at the cursor position instead of below
the current line, try this:
:command Date :exe "normal i" . strftime("%d-%b-%Y") . "\<Esc>"
- Christian
--
When all think alike, then no one is thinking.
Christian J. Robinson <[EMAIL PROTECTED]> http://infynity.spodzone.com/
PGP keys: 0x893B0EAF / 0xFB698360 http://infynity.spodzone.com/pgp