delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/17/05:59:26

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 17 Jul 2008 10:58:36 +0100 (BST)
From: Hugh Sasse <hgs AT dmu DOT ac DOT uk>
To: cygwin AT cygwin DOT com
Subject: Re: un-indenting doesn't work with vim
In-Reply-To: <17393e3e0807170141v6dcc5088kc1d23ab59653a24e@mail.gmail.com>
Message-ID: <alpine.LFD.1.10.0807171037360.6101@trueman.cs.cse.dmu.ac.uk>
References: <f68d89470807110553k2bc71311p799af2cc02e99af8 AT mail DOT gmail DOT com> <20080711130135 DOT GO24644 AT calimero DOT vinschen DOT de> <f68d89470807160249t7ccd06e5o90e0ff5a606819df AT mail DOT gmail DOT com> <g5l5cg$doi$1 AT ger DOT gmane DOT org> <20080716155746 DOT GR24644 AT calimero DOT vinschen DOT de> <g5mm98$sl4$1 AT ger DOT gmane DOT org> <17393e3e0807170141v6dcc5088kc1d23ab59653a24e AT mail DOT gmail DOT com>
User-Agent: Alpine 1.10 (LFD 962 2008-03-14)
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com


On Thu, 17 Jul 2008, Matt Wozniski wrote:

>
> Not very hard if you take the time to learn a bit about terminals.
> <BS> on a UNIX keyboard either sends ^? or ^H.  If you have "set
> backspace=indent,eol,start" (or, equivalently, "set backspace=2") in
> your ~/.vimrc, vim will correctly delete over automatically inserted

And if it isn't only Vim that's bonkers, then you need to mess with
stty. Also you may find other terminal names on the terminfo
database that are similar but behave better.  People expect these
things to "just work", and it can be very frustrating when they
don't, but there is a frightening variety of terminal types
available, and lots of parameters to change.  I've yet to see a
terminfo entry that matches the PuTTY program properly and would 
be interested if anyone has, but that's way off topic. xterm-color
is close enough for now.

The other thing that may help with this kind of frustration is using
gvim instead of vim. But if you prefer emacs, then that's OK, too.
There are enough weird terminals to make ed still useful!

         Hugh

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019