From owner-freebsd-questions@FreeBSD.ORG Sun May 30 18:32:26 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C541F106566C for ; Sun, 30 May 2010 18:32:26 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 21A448FC14 for ; Sun, 30 May 2010 18:32:25 +0000 (UTC) X-Spam-Status: No X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.2, required 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_50 0.80) X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-ID: o4UIW7qD015957 Received: from kobe.laptop (77.49.120.100.dsl.dyn.forthnet.gr [77.49.120.100]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-9.1) with ESMTP id o4UIW7qD015957 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 30 May 2010 21:32:13 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.4/8.14.4) with ESMTP id o4UIW1hW059126 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 30 May 2010 21:32:01 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.4/8.14.4/Submit) id o4UIVxuk059069; Sun, 30 May 2010 21:31:59 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: fbsd1@a1poweruser.com References: <4C01DD3F.3040000@a1poweruser.com> Date: Sun, 30 May 2010 21:31:59 +0300 In-Reply-To: <4C01DD3F.3040000@a1poweruser.com> (fbsd1@a1poweruser.com's message of "Sun, 30 May 2010 11:36:31 +0800") Message-ID: <871vct44ww.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org 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: Sun, 30 May 2010 18:32:26 -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? If you don't mind the size of the respective packages, both VIM and GNU Emacs have support for many features that ee(1) lacks. editors/vim-lite has visual block-editing and rectangle-editing modes. It includes support for multiple open buffers, split windows, and many more nice features. editors/emacs has support for many selection modes, including support for block-editing, rectangle-editing, a virtually unlimited number of 'cut buffers' (they are called 'registers' in Emacs terminology), and a literally mind-bending number of extra features. I use both editors on a regular basis. Most of the ASCII art I've posted in this mailing list and other open source mailing lists has been created using Vim or Emacs.