delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/11/04:38:45

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 11 Dec 2009 10:38:26 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin 1.5.25, vim 7.2-3: Command 'cw' misbehaves on a block of contiguous white-spaces
Message-ID: <20091211093826.GY8059@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <333442 DOT 20990 DOT qm AT web53303 DOT mail DOT re2 DOT yahoo DOT com>
MIME-Version: 1.0
In-Reply-To: <333442.20990.qm@web53303.mail.re2.yahoo.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
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 Dec 10 19:17, Avijit Ghosh wrote:
> VIM seems to be behaving improperly executing the 'cw' command when the
> cursor is positioned on a block of contiguous white-space characters.
> 
> It is changing *only* the character it is positioned on (instead of changing
> up to the last white-space in the block).
> 
> Consider the following example text (please read using fixed-width font):
> 
> alpha       beta
>      ^
>      Cursor here
> 
> If I type 'cw<ESC>', I get:
> 
> alpha      beta
> 
> I expect, based on using Win32 native VIM 7.2, Cygwin VIM 6.x, and other
> VIM/vi on Unix platforms -- and also on behavior or 'dw' or just 'w' on
> *this* version of VIM:
> 
> alphabeta
> 
> That is, I expect 'cw' to be equivalent in general to 'dwi', and 'cw<ESC>'
> to be equivalent to 'dw' --- this is not the case any more, it seems.

Works exactly as you expect it for me.  I guess you have to blame one of
your vim startup files like ~/.vimrc.


Corinna


-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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