From owner-freebsd-questions@FreeBSD.ORG Thu Nov 5 04:55:03 2009 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 34646106566B for ; Thu, 5 Nov 2009 04:55:02 +0000 (UTC) (envelope-from drew@mykitchentable.net) Received: from smtp1.mc.surewest.net (qsmtp.mc.surewest.net [66.60.130.145]) by mx1.freebsd.org (Postfix) with SMTP id 8EADD8FC1B for ; Thu, 5 Nov 2009 04:55:02 +0000 (UTC) Received: (qmail 19589 invoked from network); 4 Nov 2009 21:32:14 -0800 Received: by simscan 1.1.0 ppid: 19553, pid: 19555, t: 2.2736s scanners: regex: 1.1.0 attach: 1.1.0 spam: 3.1.7-deb X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on smtp1.surewest.net X-Spam-Level: X-Spam-Status: No, score=0.0 required=13.5 tests=none autolearn=disabled version=3.1.7-deb X-Spam-CMAE-Analysis: v=1.0 c=1 a=7Y6-kRSohPGCn8ekjc8A:9 a=xtDdIaEtS9A0zzKz3eMA:7 a=wVOP_acyT_ZeGkI_5aMpYYdqvxsA:4 Received: from unknown (HELO blacklamb.mykitchentable.net) (69.62.230.77) by smtp1 with SMTP; 4 Nov 2009 21:32:12 -0800 Received: from [127.0.0.1] (unknown [192.168.2.3]) by blacklamb.mykitchentable.net (Postfix) with ESMTPA id B6072165479; Wed, 4 Nov 2009 20:54:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mykitchentable.net; s=default; t=1257396898; bh=tsMBXa19qYJk70Jg1G4t+rYB0OMmctFLuhW/gXl25ec=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ribvygqic6Gd6ydzbLBu6WOrbhhu5Wj00wEWIFRGtFgrx1768vh9i6oa5aSifY9wf UsDpyvXdpZmyKi3E8g3KaZx8ugAMtKEGS55Di16E+1aBmUNSDb9TEu2G6camyKY7dw orLIMiEAdyp3Xe7uVvrIC3FovBAXHu9CD8f7s3kg= Message-ID: <4AF25AA0.1060300@mykitchentable.net> Date: Wed, 04 Nov 2009 20:54:56 -0800 From: Drew Tomlinson User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Chuck Robey References: <4AEC8E77.40704@mykitchentable.net> <4AECFE46.30104@telenix.org> In-Reply-To: <4AECFE46.30104@telenix.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 091104-1, 11/04/2009), Outbound message X-Antivirus-Status: Clean Cc: FreeBSD Questions Subject: Re: vim Keybindings 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: Thu, 05 Nov 2009 04:55:03 -0000 Chuck Robey wrote: > Drew Tomlinson wrote: > >> I'm experiencing an annoying problem with vim on FBSD 8 that I don't >> have on FBSD 7. Whenever I start vim, if I press the down arrow as the >> first key, it deletes the first line of my file and enters insert mode. >> All the other keys work fine and even the down arrow works fine after >> the first press. >> >> I've searched for help but haven't turned up anything relevant. Any >> ideas on what I can check? >> > > Hmm. Don't know if your machine is exactly set up as mine, so 1st, does hitting > the escape key as the first key fix things? Yes. > And, on a shell, hit control-V (the > common shell escape key for control keys), then the down arrow, what does it > print? ^[[B > Not sure I would be able to help, but there is often a timing issue on > special function key decoding (like all of the arrow keys, or the function keys, > etc) and this may tell what your down key is set for in Vim. Beyond that, Vim's > environment is extremely programmable, so one would really have to look > carefully through all of your environment files, beginning with vim's ~/.vimrc. > If you are using any of vim's huge store of extensions, your .vimrc probably > has statements to include subdirectories (perhaps of your homedir). Those files > are also candidates for trouble sources. > This is a default 7.2 install from ports. In my home directory, I have created a .vimrc and tried various items from Google searches, trying to remedy this problem. Currently, it contains: syntax on set background=dark set nocompatible set esckeys > Are you having this problem on ttys, or under X11? Tried both? > I guess on ttys. Specifically, I'm using SecureCRT from a windows machine. The terminal emulation is set to Xterm. I'm not sure I ever specifically set that but I use this same software from this same machine without problems on vim 7.2 on a FBSD 6.2 install and a FBSD 7.3 install. > It's most likely *something* dealing with Vim, because it's unreported on > FreeBSD (I know, I love vim and been using it on FreeBSD-current for years). > Vim's IRC channel ("vim") is extremely good about helping on problems, like bad > keymapping, they are just as good as we here on this mailing list are, but they > obviously concentrate on vim. Anyways, if you answer these questions on the > list or channel, folks are far more likely to be able to help you here (or on > the vim channel). > Thanks for your help. I'd really like to remove this annoyance. :) Cheers, Drew