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 [EMAIL PROTECTED] OOO http://www.madism.org
pgpgJ7P67bGK1.pgp
Description: PGP signature