From owner-freebsd-questions@FreeBSD.ORG Wed Sep 13 16:25:34 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 8350616A47C for ; Wed, 13 Sep 2006 16:25:34 +0000 (UTC) (envelope-from greenwood.andy@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C95043D76 for ; Wed, 13 Sep 2006 16:25:34 +0000 (GMT) (envelope-from greenwood.andy@gmail.com) Received: by wx-out-0506.google.com with SMTP id i27so2444498wxd for ; Wed, 13 Sep 2006 09:25:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=uXtu67Xrzm1G+yeDi0ytNUell2GUrHt8zUE8lTx+7TBotxh713B7jMm9VnrtuVY1nawBkJiJHrVRtPDFUw+e6+Jf42kg6HsYcjnbPj6EcZXKmfuMIOExoG+l0T4+y7A95UuAt6BV6hwYk1fAN4OTRi6WtzNwXf+XERkCH69G8nI= Received: by 10.90.100.6 with SMTP id x6mr2812865agb; Wed, 13 Sep 2006 09:25:33 -0700 (PDT) Received: by 10.90.80.18 with HTTP; Wed, 13 Sep 2006 09:25:33 -0700 (PDT) Message-ID: <3ee9ca710609130925i415eca35v483f6ee5421e1125@mail.gmail.com> Date: Wed, 13 Sep 2006 12:25:33 -0400 From: "Andy Greenwood" To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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:25:34 -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? Another question: Why do so many text editors have this behavior? Should a text editor really add text that I don't tell it to add to my file? It seems that there must be some reason.