From owner-freebsd-questions@FreeBSD.ORG Mon May 31 05:24:18 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A26881065675 for ; Mon, 31 May 2010 05:24:18 +0000 (UTC) (envelope-from MTaylor@bytecraft.com.au) Received: from bcmelmx.bytecraft.au.com (bcmelmx.bytecraft.au.com [203.39.118.2]) by mx1.freebsd.org (Postfix) with ESMTP id 26DF78FC14 for ; Mon, 31 May 2010 05:24:17 +0000 (UTC) Received: from svmailmarshal.bytecraft.internal ([10.48.0.3]) by bcmelmx.bytecraft.au.com (8.13.8/8.12.11) with ESMTP id o4V5Bfe4046342 for ; Mon, 31 May 2010 15:11:41 +1000 (EST) (envelope-from MTaylor@bytecraft.com.au) Received: from svmailmel.bytecraft.internal (Not Verified[10.48.0.24]) by svmailmarshal.bytecraft.internal with MailMarshal (v6, 7, 2, 8378) id ; Mon, 31 May 2010 15:11:41 +1000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 31 May 2010 15:11:28 +1000 Message-ID: In-Reply-To: <4C01DD3F.3040000@a1poweruser.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: text editor Thread-Index: Acr/qWrpejT4fnsYTB6l9eaKr2K1YQA1STAw From: "Murray Taylor" To: Cc: Subject: RE: text editor X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2010 05:24:18 -0000 =20yep ... its called vi place cursor at the line at hte top (or bottom) of the block press ma (put marker a on the line) move your cursor to the line at the other end (bottom ot top) of the block press d'a this will delete between the marked line and the cursor to move the block.... delete it as above, then put the cursor where you want it to go and press p (pastes the last deleted whatever in the new place) to copy a block ...=20 ma (move cursor) y'a (move cursor) p y is the yank into the default storage buffer instead of deleting into the buffer and you can use named buffers also ... a through z "ad'a deletes test from marker a to current into buffer a "ap pastes from buffer a dd delete current line into default buffer "bdd delete current line into buffer b =20 etc etc =20 Murray Taylor Bytecraft Systems Special Projects Engineer P: +61 3 8710 0600 D: +61 3 9238 4275 F: +61 3 9238 4140 -- =20|_|0|_| "Absence of evidence =20|_|_|0| is not evidence of absence" =20|0|0|0| Carl Sagan -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Fbsd1 Sent: Sunday, May 30, 2010 1:37 PM To: questions@freebsd.org Subject: text editor Been using ee and been happy. Now I have need for an editor with block commands. Put dd on the first line of sequence number you want to start deleting and dd on the last line of the block and hit enter and the block of lines are deleted. OR Put cc on first line and cc on last line of black to copy and enter "I" on line where you want the copied block to be inserted after. Also same for mm meaning move block. Is there any editors with a function like this? _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" --------------------------------------------------------------- The information transmitted in this e-mail is for the exclusive use of the intended addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material.=20 E-mails may not be secure, may contain computer viruses and may be corrupted in transmission. Please carefully check this e-mail (and any attachment) accordingly. No warranties are given and no liability is accepted for any loss or damage caused by such matters. --------------------------------------------------------------- ### This e-mail message has been scanned for Viruses by Bytecraft ###