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...
--
The difference between theory and practice, is that in theory, there
is no difference between theory and practice.
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://www.ICCF.nl ///