Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Gene Smith <gds@chartertn.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@sea.gmane.org>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
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/

