Bug#438560: vim -C isn't compatible

Helmut Grohne helmut at subdivi.de
Fri Aug 17 19:48:26 UTC 2007


Package: vim
Version: 1:7.1-056+2
Severity: minor

man vim states that
    -C Compatible. Set the 'compatible' option. This will make Vim
       behave mostly like Vi, even though a .vimrc file exists.

However vim -C is not compatible. This is due to a set nocompatible
statement in /usr/share/vim/vim71/debian.vim. I suggest adapting the
manpage or discarding this statement.

[off topic:]
I stumbled upon this while trying to make vim compatible based on the
program name, i.e. compatible for invoking vi and nocompatible for
invoking vim. Is there a better way to achieve this than using this
$ cat ~/bin/vi
#!/bin/sh
exec vim -u NONE -U NONE $@
$
shell script?

Helmut

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

Kernel: Linux 2.6.20.1 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages vim depends on:
ii  libc6                     2.6.1-1        GNU C Library: Shared libraries
ii  libgpmg1                  1.19.6-25      General Purpose Mouse - shared lib
ii  libncurses5               5.6+20070812-1 Shared libraries for terminal hand
ii  vim-common                1:7.1-056+2    Vi IMproved - Common files
ii  vim-runtime               1:7.1-056+2    Vi IMproved - Runtime files

vim recommends no packages.

-- no debconf information




More information about the pkg-vim-maintainers mailing list