From owner-freebsd-questions@freebsd.org Tue Dec 15 14:58:15 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E1827A448C9 for ; Tue, 15 Dec 2015 14:58:15 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B4EF51576 for ; Tue, 15 Dec 2015 14:58:15 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from kabini1.local (dynamic-216-186-213-32.knology.net [216.186.213.32] (may be forged)) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id tBFEw7Wp006983 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 15 Dec 2015 08:58:08 -0600 Subject: Re: freebsd-update editor choice To: freebsd-questions@freebsd.org References: <20151213182848.M69104@brightstar.bomgardner.net> <20151215124601.GA4020@becker.bs.l> From: "William A. Mahaffey III" Message-ID: <56702A7F.70404@hiwaay.net> Date: Tue, 15 Dec 2015 09:03:37 -0553.75 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151215124601.GA4020@becker.bs.l> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2015 14:58:16 -0000 On 12/15/15 06:52, Bertram Scharpf wrote: > Hi, > > On Sunday, 13. Dec 2015, 12:31:22 -0600, Gene wrote: >> I'm using freebsd-update to update my 10.1 system to 10.2. When merging files, >> it insists on using the 'vi' editor. I really, really, REALLY, despise vi. Is >> there a way to get it to use another editor? > The problem I fussed about many times and long times without > any understanding up to this day is not how but _where_ to > set the EDITOR environment variable. There is > > - /etc/login.conf > - /etc/rc > - /etc/profile (and /etc/zprofile) > - /etc/csh.cshrc (or /etc/zshrc) > - ~/.profile (and ~/.zprofile) > - ~/.shrc, ~/.cshrc, (or ~/.zshrc) > - probably some more I forgot here > > Some programs change their behaviour in dependence of the > EDITOR variable. For example if you log into a host with the > command > > $ ssh otherhost -t tmux > > most of the above files are left unregarded and the TMux > option 'status-keys' may be set to an undesired value. > > Is there any documentation in which order and under which > circumstances the above files are executed or come into > respect? > > By the way: there was a time when I considered Vi/Vim a > really, really, REALLY weird approach to editing. Then I > managed to change my opinion and gave it a try. It was one > of the best decisions in my life. Of course, this mail is > written in Vim. > > Bertram Preach it *LOUD*, brother ;-) .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.