On 10/09/12 11:46 AM, Tim Chase wrote:
> On 09/09/12 20:43, Bee wrote:
>> cal in a doc
>> From within terminal vim I can issue the command:
>> !cal
>> and it will display the current month.
>> How can I get it placed in the current document?
>
> :r! cal
>
> which you can read about at
>
> :help :r!
I suggest, though, that it is more helpful to view it as
:r !cal
The '!' belongs more to the argument than the :read command itself. A
'!' appended to a command usually means "really do it, even if it's
dangerous". A '!' before a filename usually means "run it, don't just
look in it".
Cheers,
Ben.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Sunday, September 9, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment