From owner-freebsd-questions@FreeBSD.ORG Fri Sep 28 15:32:34 2007 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 94F6216A47C for ; Fri, 28 Sep 2007 15:32:34 +0000 (UTC) (envelope-from lists-fbsd@shadypond.com) Received: from mx-outbound01.easydns.com (mailout.easydns.com [205.210.42.54]) by mx1.freebsd.org (Postfix) with ESMTP id 66AAD13C4EB for ; Fri, 28 Sep 2007 15:32:34 +0000 (UTC) (envelope-from lists-fbsd@shadypond.com) Received: from slider.shadypond.com (69-12-173-117.static.humboldt1.com [69.12.173.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx-outbound01.easydns.com (Postfix) with ESMTP id 02FF08202 for ; Fri, 28 Sep 2007 11:32:32 -0400 (EDT) Received: from slider.shadypond.com (slider.shadypond.com [192.168.1.11]) by slider.shadypond.com (postoffice) with ESMTP id 2A4D1B65A9 for ; Fri, 28 Sep 2007 15:32:30 +0000 (UTC) From: Pollywog To: freebsd-questions@freebsd.org Date: Fri, 28 Sep 2007 15:32:29 +0000 References: <46FC605F.3000006@sequestered.net> <46FC83E5.2040907@computer.org> <46FC99BD.4050102@sequestered.net> In-Reply-To: <46FC99BD.4050102@sequestered.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709281532.29513.lists-fbsd@shadypond.com> Subject: Re: Getting vim to work correctly. 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: Fri, 28 Sep 2007 15:32:34 -0000 On Friday 28 September 2007 06:05:49 Jay Chandler wrote: > Eric Schuele wrote: > > On 09/27/2007 21:01, Jay Chandler wrote: > >> Howdy. > >> > >> Sorry to keep hitting the list with questions today, but does anyone > >> know how to get the home, delete, end, page up, etc. keys working > >> correctly in vim? > >> > >> It works in Linux, drives me nuts in FreeBSD... > > > > They work perfectly fine here. How is it you expect those keys to > > behave? Define "working correctly". > > When in insert mode, and pagedown is pressed, the letter the cursor is > over is capitalized, and the editor is removed from insert mode, as an > example. > > PageUp capitalizes the letter next to it, and again removes me from > insert mode. > > Home randomly capitalizes letters and shifts the cursor to the next letter. > > Insert decapitalizes the letter the cursor is over. > > Weird behavior like this... > > I was mistaken in that this is in vim-- this is in the natural version > of vi that ships with the base OS. > > This is happening from PuTTY in default setting mode on a Windows box-- > my MacBook is relatively better behaved. If you also run Linux, you can copy your ~/.vimrc or the systemwide one to your FreeBSD as ~/.vimrc and that should fix the problem. Also export your editor as vim in your ~/.bashrc. In addition, I make an alias so that when I use 'vi' as a command, I get 'vim' and not what FreeBSD uses as vi by default. I had the same problems that you report.