On Tue, Apr 18, 2006 at 12:40:17PM +0200, Bram Moolenaar wrote:
> 
> Srinath Avadhanula wrote:
> 
> > I found the following difference in behavior between vim6 and vim7:
> > 
> > 1. Open a buffer (vim -u NONE)
> > 2. :set encoding=utf8
> > 3. Type some stuff
> > 4. Type the following in insert mode:
> >         <C-r>=substitute('foo', '.', "\<left>\<del>", 'g').'bar'
> >    In vim6:
> >         The last three characters are deleted and 'bar' is inserted in
> >         their place.
> >    In vim7:
> >         A whole bunch of control codes are inserted instead of text being
> >         deleted. In vim7, however, the following
> >             <C-r>=repeat("\<left>\<del>", 3).'bar'
> >         does delete the last three characters and inserts 'bar'
> > 
> > 
> > Note that with 'encoding' set to 'latin1', vim6 and vim7 both delete the
> > last three characters and insert 'bar'.
> 
> I don't see the problem.  I don't think this is system-dependent.  I
> have no idea why it would fail for you...

     There was a problem like this, specifically with encoding=utf8, but
it was fixed several versions ago.  Srinath, can you post your full
:version output?

HTH                                     --Benji Fisher

Reply via email to