From owner-freebsd-questions@FreeBSD.ORG Sun May 30 11:26:33 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 897471065674 for ; Sun, 30 May 2010 11:26:33 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 4A03B8FC16 for ; Sun, 30 May 2010 11:26:33 +0000 (UTC) Received: from r55.edvax.de (port-92-195-249-33.dynamic.qsc.de [92.195.249.33]) by mx01.qsc.de (Postfix) with ESMTP id 810483DEA0; Sun, 30 May 2010 13:26:16 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o4UBQDFL001507; Sun, 30 May 2010 13:26:13 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 30 May 2010 13:26:13 +0200 From: Polytropon To: Fbsd1 Message-Id: <20100530132613.797da749.freebsd@edvax.de> In-Reply-To: <4C01DD3F.3040000@a1poweruser.com> References: <4C01DD3F.3040000@a1poweruser.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "questions@freebsd.org" Subject: Re: text editor X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2010 11:26:33 -0000 On Sun, 30 May 2010 11:36:31 +0800, Fbsd1 wrote: > 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? Hmmm... block commands are a big strength of joe (Joe's own editor). Start block with ^KB, end block with ^KK. Blocks can be copied with ^KC, moved with ^KM and deleted with ^KY. ^KH and "man joe" for more details. Another solution is mcedit, the editor that comes with the Midnight Commander. Press PF3 on block start, move to block end, press PF3, the block will be selected. Press PF8 to delete it. And a third suggestion: the (The Hessling Editor), a very powerful editor, allthough "a bit strange" to learn. If you already have an ISPF/PDF background, this editor will be for you. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...