From owner-freebsd-questions@FreeBSD.ORG Wed Sep 13 17:08:45 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 A4A9816A541 for ; Wed, 13 Sep 2006 17:08:45 +0000 (UTC) (envelope-from freebsd@philip.pjkh.com) Received: from bravo.pjkh.com (bravo.pjkh.com [72.36.232.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1260043DF6 for ; Wed, 13 Sep 2006 17:06:38 +0000 (GMT) (envelope-from freebsd@philip.pjkh.com) Received: from bravo.pjkh.com (bravo.pjkh.com [72.36.232.219]) by bravo.pjkh.com (Postfix) with ESMTP id 3BB6813D76F; Wed, 13 Sep 2006 12:12:11 -0500 (CDT) Received: by bravo.pjkh.com (Postfix, from userid 1000) id 7125F13D76D; Wed, 13 Sep 2006 12:12:10 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by bravo.pjkh.com (Postfix) with ESMTP id 6FEED13C80B; Wed, 13 Sep 2006 12:12:10 -0500 (CDT) Date: Wed, 13 Sep 2006 12:12:10 -0500 (CDT) From: Philip Hallstrom To: Andy Greenwood In-Reply-To: <3ee9ca710609130925i415eca35v483f6ee5421e1125@mail.gmail.com> Message-ID: <20060913121116.H30246@bravo.pjkh.com> References: <3ee9ca710609130925i415eca35v483f6ee5421e1125@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: ClamAV using ClamSMTP 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 17:08:45 -0000 > 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? Not an editor, but why not just do this: ------------------------------------------------------------------- . php will treat the rest of the file as php -------------------------------------------------------------------