Monday, September 10, 2012

Re: cal in a doc

On 09/10/12 02:31, William Robertson wrote:
> On Monday, September 10, 2012 2:45:48 AM UTC+1, Tim Chase wrote:
>>> !cal
>>> How can I get it placed in the current document?
>>
>> :r! cal
>
> Interesting - I've always used "!!" (possibly that's from classic vi), as in
>
> !!cal
>
> which I see Vim translates into
>
> :.!cal

The main problem with that is it replaces the current line's
contents with the output of cal.

bash$ seq 20 | vi -
5G " go to line 5
!!cal " read in the calendar

Notice that the line containing "5" is now missing from your document.

-tim


--
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

No comments: