From owner-freebsd-questions@FreeBSD.ORG Tue Feb 8 20:27:23 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 ABA55106564A for ; Tue, 8 Feb 2011 20:27:23 +0000 (UTC) (envelope-from mailing@alokat.org) Received: from smtp.alokat.org (smtp.alokat.org [46.4.186.11]) by mx1.freebsd.org (Postfix) with ESMTP id 3E1768FC0A for ; Tue, 8 Feb 2011 20:27:22 +0000 (UTC) Received: from smtp.alokat.org (localhost.localdomain [127.0.0.1]) by smtp.alokat.org (Postfix) with ESMTP id AF1C311250097 for ; Tue, 8 Feb 2011 21:27:21 +0100 (CET) Received: from [192.168.24.23] (188-192-38-254-dynip.superkabel.de [188.192.38.254]) by smtp.alokat.org (Postfix) with ESMTPSA id C0F1111250096 for ; Tue, 8 Feb 2011 21:27:20 +0100 (CET) Message-ID: <4D51A725.3090906@alokat.org> Date: Tue, 08 Feb 2011 21:27:17 +0100 From: Alokat User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4D508A03.2020401@alokat.org> <1297124740.2564.6.camel@dt.vicor.com> <1297126082.2564.7.camel@dt.vicor.com> In-Reply-To: <1297126082.2564.7.camel@dt.vicor.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP 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 20:27:23 -0000 On 02/08/2011 01:48 AM, Devin Teske wrote: > On Mon, 2011-02-07 at 16:25 -0800, Devin Teske wrote: > > >> 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 >> >> > > Minor note (hit send after forgetting the pit-fall many fall into): > > ^[ above is a single character produced by the two keystrokes: > > Control+V followed by Control+[ > > NOTE: Or, you can use... Control+V followed by Escape > -- > Devin > > > > >> 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" >>> >> >> _______________________________________________ >> 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" >> > > _______________________________________________ > 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" Thanks to all. The set t_kr=^[[1;2A set t_kl=^[[1;2D solution had fixed my problem. Regards, alokat