From owner-freebsd-questions@FreeBSD.ORG Wed Sep 13 16:38:49 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1D1216A415 for ; Wed, 13 Sep 2006 16:38:49 +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 C30A943D46 for ; Wed, 13 Sep 2006 16:38:48 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-2) with ESMTP id k8DGcUh6021545 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 13 Sep 2006 19:38:31 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.7/8.13.7) with ESMTP id k8DGcoVk062756; Wed, 13 Sep 2006 19:38:51 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.7/8.13.7/Submit) id k8DGcne4062755; Wed, 13 Sep 2006 19:38:49 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 13 Sep 2006 19:38:49 +0300 From: Giorgos Keramidas To: Andy Greenwood Message-ID: <20060913163849.GB62734@gothmog.pc> References: <3ee9ca710609130925i415eca35v483f6ee5421e1125@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ee9ca710609130925i415eca35v483f6ee5421e1125@mail.gmail.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.794, required 5, autolearn=not spam, AWL -0.20, BAYES_00 -2.60, UNPARSEABLE_RELAY 0.00) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: FreeBSD Questions Subject: Re: CLI text editor recommendation 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: Wed, 13 Sep 2006 16:38:49 -0000 On 2006-09-13 12:25, Andy Greenwood wrote: > I need a CLI text editor I can use over ssh, which does NOT append > newlines to the end of files as I save them. I am using this to edit > PHP files, and my PHP doesn't like newlines outside the last ?>. ee > and vi both do so, I tried nano which also does the same. I haven't > installed emacs to try that yet, since the man page says that it also > does the same thing. Does anyone have any ideas? IMHO, the problem is not the editor, but the brokenness of this particular PHP installation. Having said that, you can configure both VIM and Emacs to append or not append newlines.