From owner-freebsd-questions@FreeBSD.ORG Thu Sep 4 00:47:12 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3211A16A4BF for ; Thu, 4 Sep 2003 00:47:12 -0700 (PDT) Received: from web21106.mail.yahoo.com (web21106.mail.yahoo.com [216.136.227.108]) by mx1.FreeBSD.org (Postfix) with SMTP id A2AA543FBF for ; Thu, 4 Sep 2003 00:47:11 -0700 (PDT) (envelope-from materribile@yahoo.com) Message-ID: <20030904074711.43334.qmail@web21106.mail.yahoo.com> Received: from [24.228.74.10] by web21106.mail.yahoo.com via HTTP; Thu, 04 Sep 2003 00:47:11 PDT Date: Thu, 4 Sep 2003 00:47:11 -0700 (PDT) From: Mark Terribile To: freebsd-questions@freebsd.org In-Reply-To: <20030903190045.1D4C816A4F0@hub.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: mats.svensson2@comhem.se Subject: The VI editor (old) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2003 07:47:12 -0000 I found something that might be relevant to this old question: > I have trouble using vi and vim under freebsd, > under linux red hat it was working perfect. The > trouble is that the arrow-keys doesn't work when > I'm in insert mode. I have heard that it's important > to use the right terminalprogram. In vim it's ok > with the fancy swedish letters with dots over, but > the arrow-keys doesn't work. In the FAQ for nvi (which is sitting in /usr/src/contrib on my machine; I can't actually swear that's its true home) I find Q: My cursor keys don't work when I'm in text input mode! A: A common problem over slow links is that the set of characters sent by the cursor keys don't arrive close enough together for vi to understand that they are a single keystroke, and not separate keystrokes. Try increasing the value of the escapetime edit option, which will cause vi to wait longer before deciding that the character that starts cursor key sequences doesn't have any characters following it. Obviously, on the system console you are not going over a slow link ... but if vim is interpreting a generated escape sequence and not the actual keycodes (what's the proper term?) there are several places where mode settings might be screwing you up. BTW, I use nvi as my vi and the arrow keys work in insert mode. I don't know if it will work for you, since you are using an extended character set, but you might like to try it. It allows you to open multiple files, move files to an internal background, etc. Mark Terribile __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com