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 To: cygwin AT cygwin DOT com Subject: Re: un-indenting doesn't work with vim In-Reply-To: <17393e3e0807170141v6dcc5088kc1d23ab59653a24e@mail.gmail.com> Message-ID: References: <20080711130135 DOT GO24644 AT calimero DOT vinschen DOT de> <20080716155746 DOT GR24644 AT calimero DOT vinschen DOT de> <17393e3e0807170141v6dcc5088kc1d23ab59653a24e AT mail DOT gmail DOT com> User-Agent: Alpine 1.10 (LFD 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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. > 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/