Re: vi editor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12Jul2006 18:56, les mikesell <lesmikesell@xxxxxxxxx> wrote:
| On Wed, 2006-07-12 at 17:20 -0600, Phil Meyer wrote:
| > !! is the proper way, but you can specify the shell.
| > 
| > !!sh
| > !!csh
| > !!bash
| > 
| > etc.
| > 
| > For really geeky guys, write a line of perl script, then:
| > !!perl
| > 
| > cool stuff.
| 
| !! is for a single line in the buffer.

It's just the normal special case for most rangeable commands where
doubling the command means "do it to the current line". So:

!} pipes a paragraph through a shell command.
!/foo pipes the text from the current line to a line containing foo
  through a shell command, etc.

I routinely go

	{!}fmt

to reformat a paragraph.

Cheers,
--
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Why is it whatever we don't understand is called a 'thing'? - "Bones" McCoy

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux