cal <ESC>!!sh<RETURN> didn't work for me.
What did work was:
:r ! cal <RETURN>
Joel



On Mon, Jan 07, 2002 at 06:29:52PM -0800, Bill Campbell wrote:
> On Mon, Jan 07, 2002 at 08:57:53PM -0500, Joel Hammer wrote:
> >The more I learn about vi the better it becomes.
> >
> Another neat vi tricks session.
> 
> To put the output of any command in your text, type the command
> on a line, the press ``!!sh<RETURN>''.
> 
> cal<ESC>!!sh<RETURN>
>     January 2002
> Su Mo Tu We Th Fr Sa 
>        1  2  3  4  5
>  6  7  8  9 10 11 12
> 13 14 15 16 17 18 19
> 20 21 22 23 24 25 26
> 27 28 29 30 31
> 
> To expand bash shell commands so that they're portable, try
> putting echo in front of the command, then do ``!!bash<ENTER>''.
> 
> mkdir /usr/local/{bin,lib,sbin}
>       converts to this.
> mkdir /usr/local/bin /usr/local/lib /usr/local/sbin
> 
_______________________________________________
Linux-users mailing list
Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users

Reply via email to