[email protected]
[Top] [All Lists]

Bug#438560: marked as forwarded ([vim-common] vim -C isn't 'compatible'

Subject: Bug#438560: marked as forwarded [vim-common] vim -C isn't 'compatible'
From: Debian Bug Tracking System
Date: Mon, 04 Feb 2008 20:54:08 +0000
Your message dated Mon, 4 Feb 2008 15:52:21 -0500
with message-id <[email protected]>
has caused the Debian Bug report #438560,
regarding [vim-common] vim -C isn't 'compatible'
to be marked as having been forwarded to the upstream software
author(s) Bram Moolenaar <[email protected]>.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Subject: Should -N/-C override 'compatible' settings in vimrc files?
From: James Vega
Date: Mon, 4 Feb 2008 15:52:21 -0500

It's a common paradigm for option priority to be "system-wide config is
overridden by the user's config which is overridden by command-line
options".  This is mostly followed by Vim except that -N/-C command-line
optons only "stick" if $VIM/vimrc or $HOME/.vimrc don't also affect the
'compatible' option.

This can lead to a counter-intuitive behavior of, for example, Vim
starting in 'nocompatible' mode when the user specified -C because of a
'set nocompatible' in one of the startup scripts.  While the user could
explicitly elide the startup scripts with -u/-U, doing so would also
require that they perform any other configuration that is in the startup
scripts manually.  It seems that honoring the request to at least start
in the mode specified by the user on the command-line is the right thing
to do.

I've attached a patch which implements this behavior to ignore changes
to the 'compatible' option during startup if -N/-C have been used but
I'd like to get your input before considering applying it to the Debian

GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>

--- End Message ---
<Prev in Thread] Current Thread [Next in Thread>
  • Bug#438560: marked as forwarded ([vim-common] vim -C isn't 'compatible'), Debian Bug Tracking System <=