Bug#608242: With :set nocompatible, vim -w or -W records extra garbage keystrokes

Josh Triplett josh at joshtriplett.org
Wed Dec 29 06:06:38 UTC 2010


Package: vim
Version: 2:7.3.035+hg~8fdc12103333-1
Severity: normal

vim -w or -W records all the keystrokes entered in Vim.  With :set
nocompatible, either in .vimrc or interactively, the output will start
with three garbage characters, \x80\xfd\x35 .  With :set compatible,
the garbage characters don't appear.

This came up in the vimgolf.com competition. :)

- Josh Triplett

-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-rc5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (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-7                    Embedded GNU C Library: Shared lib
ii  libgpm2      1.20.4-3.3                  General Purpose Mouse - shared lib
ii  libncurses5  5.7+20100313-4              shared libraries for terminal hand
ii  libselinux1  2.0.96-1                    SELinux runtime shared libraries
ii  vim-common   2:7.3.035+hg~8fdc12103333-1 Vi IMproved - Common files
ii  vim-runtime  2:7.3.035+hg~8fdc12103333-1 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