Bug#438560: vim -C isn't compatible
Pierre Habouzit
madcoder at debian.org
Sat Aug 18 08:42:55 UTC 2007
On Fri, Aug 17, 2007 at 07:48:26PM +0000, Helmut Grohne wrote:
> 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?
the package vim-tiny ships a 'vi' binary that is in compatible mode
"for real". OTOH I think that vi -C should be in compatible mode, no
matter what is in the rc files.
--
·O· Pierre Habouzit
··O madcoder at debian.org
OOO http://www.madism.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20070818/99bd65bd/attachment-0003.pgp
More information about the pkg-vim-maintainers
mailing list