delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/13/01:38:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
To: cygwin AT cygwin DOT com
From: Gene Smith <gds AT chartertn DOT net>
Subject: Re: Backspace in gvim [SOLVED]
Date: Mon, 13 Jun 2005 01:37:29 -0400
Lines: 29
Message-ID: <d8j5pr$3o5$1@sea.gmane.org>
References: <d8j1o0$sft$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513)
In-Reply-To: <d8j1o0$sft$1@sea.gmane.org>
X-IsSubscribed: yes

Gene Smith wrote, On 06/13/2005 12:28 AM:
> This may not be related in cygwin but since that's where I am seeing it 
> I will go ahead and ask. I am running gvim 6.3 windows version and 
> cygwin latest version on XP and 2k which I just installed. Backspace in 
> insert mode used to delete the char to the left (possibly gvim 6.2 on 
> linux and another older cygwin on 2k). I have always :set bs=2 in 
> gvimrc. Now when I hit backspace in insert mode the cursor just moves 
> over the characters and does not seem to affect them. However, when I go 
> to command mode (hit escape) the characters are then removed. Looking at 
> the gvim/vim documenation it never seems to mention that backspace can 
> delete anything other than possibly eol to joint two lines, nor does it 
> mention the deferred delete on hitting escape. However, for years I have 
> used backspace as a immediate delete key, as you can do on the command 
> line vi mode and as backspace works in the email editor I am typing into 
> now. Someone in a previous post dismissed this as "the way gvim works" 
> but no mention was made of the deferred delete occurring when command 
> mode entered. Anyone here know anything about this or seen this?
> 
> Tks,
> -gene

Finally found this which explains it (see last posting):
http://comments.gmane.org/gmane.editors.vim/33436

Since I am *now* using a "system wide" gvimrc, and not ~/.gvimrc, which 
defaults to vi compatible mode. Have to "set nocp" in $VIM/gvimrc. So 
not cygwin related as I expected. Now with bs=2, backspace in insert 
mode deletes to left and delete deletes to right like before.



--
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