From owner-freebsd-questions Tue Jul 3 7:52:22 2001 Delivered-To: freebsd-questions@freebsd.org Received: from shumai.marcuscom.com (rdu26-228-058.nc.rr.com [66.26.228.58]) by hub.freebsd.org (Postfix) with ESMTP id E45D037B403 for ; Tue, 3 Jul 2001 07:52:18 -0700 (PDT) (envelope-from marcus@marcuscom.com) Received: from localhost (marcus@localhost) by shumai.marcuscom.com (8.11.3/8.11.3) with ESMTP id f63Er0R27564; Tue, 3 Jul 2001 10:53:00 -0400 (EDT) (envelope-from marcus@marcuscom.com) X-Authentication-Warning: shumai.marcuscom.com: marcus owned process doing -bs Date: Tue, 3 Jul 2001 10:53:00 -0400 (EDT) From: Joe Clarke To: Mark Drayton Cc: Subject: Re: Screen, vim and backspace In-Reply-To: <20010703154743.A96802@tethys.valhalla.net> Message-ID: <20010703105159.C27505-100000@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Try adding this to your ~/.vimrc: set t_kD=^V That fixed the backspace/delete problem I was having. Joe Clarke On Tue, 3 Jul 2001, Mark Drayton wrote: > Hi > > I'm having a hard time getting screen, vim and the backspace key to work > consistently. > > On the console all is fine. Backspace works in my shell (bash), in > vim, and in bash and vim inside a screen session. > > When I ssh in using PuTTY with the backspace set to ^H, backspace works > fine in bash but not in vim (it tries to delete text from the right of > the cursor, windows 'delete' key style). Inside screen backspace works > fine in bash and vim. > > When I ssh in using PuTTY with the backspace set to ^?, backspace wortks > fine in bash and vim. Inside screen, backspace produces a ~ in bash (but > manual ^H backspaces fine) and in vim it tries to delete text to the > right of the cursor. > > My TERM is set to xterm-color when I ssh in. > > So at the moment backspace set to ^H is less broken, but it still > doesn't quite work right. I don't care if I have to set backspace to ^H > or ^?, I just want it to work consistently! > > Any ideas? > > Cheers, > > -- > > Mark Drayton > 4th Wave Technologies > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message