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

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

There's no trick to being a humorist when you have the whole government
working for you.
                -- Will Rogers
_______________________________________________
Linux-users mailing list
Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users

Reply via email to