Bug#632542: vim: The dot command (.) mishandles multibyte characters

Connor Lane Smith cls at lubutu.com
Sun Jul 3 12:06:59 UTC 2011


Package: vim
Version: 2:7.3.154+hg~74503f6ee649-2+b1
Severity: normal

Using vim's dot command (.) doesn't work correctly when dealing with
multibyte characters. To replicate, create the following buffer:

> ££££££££
> $$$$$$$$

Now enter visual mode and delete four pound signs on the top line. Go
to the second line and hit dot; now there is only a single remaining
dollar sign on the second line. Vim appears to delete the number of
bytes deleted on the first line *minus 1*, which suggests it makes an
attempt at understanding the difference between bytes and characters,
but fails.


-- System Information:
Debian Release: 6.0.1
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vim depends on:
ii  libacl1   2.2.49-4                       Access control list shared library
ii  libc6     2.11.2-10                      Embedded GNU C Library: Shared lib
ii  libgpm2   1.20.4-3.3                     General Purpose Mouse - shared lib
ii  libncurse 5.7+20100313-5                 shared libraries for terminal hand
ii  libselinu 2.0.96-1                       SELinux runtime shared libraries
ii  vim-commo 2:7.3.154+hg~74503f6ee649-2+b1 Vi IMproved - Common files
ii  vim-runti 2:7.3.154+hg~74503f6ee649-2    Vi IMproved - Runtime files

vim recommends no packages.

Versions of packages vim suggests:
pn  ctags                         <none>     (no description available)
pn  vim-doc                       <none>     (no description available)
pn  vim-scripts                   <none>     (no description available)

-- no debconf information





More information about the pkg-vim-maintainers mailing list