From owner-freebsd-questions@FreeBSD.ORG Tue Feb 8 00:25:41 2011 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 E06D8106566B for ; Tue, 8 Feb 2011 00:25:41 +0000 (UTC) (envelope-from dteske@vicor.com) Received: from postoffice.vicor.com (postoffice.vicor.com [69.26.56.53]) by mx1.freebsd.org (Postfix) with ESMTP id C99968FC15 for ; Tue, 8 Feb 2011 00:25:41 +0000 (UTC) Received: from [192.82.228.121] (port=50801) by postoffice.vicor.com with esmtpsa (SSLv3:AES256-SHA:256) (Exim 4.71) (envelope-from ) id 1PmbOm-0004Y6-1z; Mon, 07 Feb 2011 16:25:41 -0800 From: Devin Teske To: Alokat In-Reply-To: <4D508A03.2020401@alokat.org> References: <4D508A03.2020401@alokat.org> Organization: VICOR, Inc. Date: Mon, 07 Feb 2011 16:25:40 -0800 Message-ID: <1297124740.2564.6.camel@dt.vicor.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 X-Scan-Signature: 08c45bf8e3928faec3d57d321ab3d095 X-Scan-Host: postoffice.vicor.com Content-Type: text/plain; charset="cp1252" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: some problems with vim 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: Tue, 08 Feb 2011 00:25:42 -0000 On Tue, 2011-02-08 at 01:10 +0100, Alokat wrote: > Hi, > > I have some problems by using vim. > > arrow up prints a B > arrow down prints a C > ... > > How can I fix this? Try adding to ~/.vimrc set t_ku=^[[1;2B set t_kd=^[[1;2C You didn't mention what left/right do. But here's a guess: set t_kr=^[[1;2A set t_kl=^[[1;2D NOTE: You'll have to re-launch vim after creating ~/.vimrc Alternatively, this may be an artifact of an incorrectly-set TERM variable... try (if you're using csh or tcsh): setenv TERM vt100 (or if you're using sh or bash): export TERM=vt100 NOTE: you'll have to re-launch vim after changing TERM -- Devin > > Regards, > alokat > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"