From mboxrd@z Thu Jan 1 00:00:00 1970 From: dexen deVries To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Fri, 17 Jun 2011 17:17:52 +0200 User-Agent: KMail/1.13.6 (Linux/3.0.0-rc3-l29+; KDE/4.5.5; x86_64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201106171717.52862.dexen.devries@gmail.com> Subject: Re: [9fans] in ed, how to do i do this? Topicbox-Message-UUID: f157c4c2-ead6-11e9-9d60-3106f5b1d025 On Friday 17 of June 2011 16:55:41 Fernan Bolando wrote: > 2. indent a line - i usually retype the whole line. to indent several lines, you could do 1) set dot to range, like 1,5 2) s,^, ,g (a tab between second and third coma) but that'd indent the empty ones too :( you want 1) set dot to range, like 1,5 2) s,^., &,g (a tab between second coma and the ampersand) the `g' means `do it for every line, rather than just the first one' =2D-=20 dexen deVries [[[=E2=86=93][=E2=86=92]]] =46or example, if the first thing in the file is: an XML parser will recognize that the document is stored in the traditional= =20 ROT13 encoding. (( Joe English, http://www.flightlab.com/~joe/sgml/faq-not.txt ))