Bug#288449: marked as done (set cpoptions=C causes sql filetype errors on startup)
Debian Bug Tracking System
owner@bugs.debian.org
Mon, 21 Mar 2005 23:48:11 -0800
Your message dated Tue, 22 Mar 2005 08:40:45 +0100
with message-id <20050322074045.GA16240@amaretto.inria.fr>
and subject line set cpoptions=C causes sql filetype errors on startup
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(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)
--------------------------------------
Received: (at submit) by bugs.debian.org; 3 Jan 2005 20:28:27 +0000
>From moss@acmeunix.org Mon Jan 03 12:28:26 2005
Return-path: <moss@acmeunix.org>
Received: from olympia.acmeunix.org (sansiro.int.acmeunix.org) [69.17.65.202]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1ClYoU-0008ST-00; Mon, 03 Jan 2005 12:28:26 -0800
Received: from [192.168.4.5] (moss@bernabeu.int.acmeunix.org [192.168.4.5])
by sansiro.int.acmeunix.org (8.13.1/8.13.1) with ESMTP id j03KSK5a006131
for <submit@bugs.debian.org>; Mon, 3 Jan 2005 15:28:21 -0500 (EST)
(envelope-from moss@acmeunix.org)
Message-ID: <41D9AABC.80903@acmeunix.org>
Date: Mon, 03 Jan 2005 15:27:40 -0500
From: James Moss <moss@acmeunix.org>
User-Agent: Mozilla Thunderbird 0.9 (X11/20041124)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: submit@bugs.debian.org
Subject: set cpoptions=C causes sql filetype errors on startup
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
Package: vim-common
Version: 1:6.3-046+1
opening an existing sql file, or a new sql file with cpoptions=C causes
errors on vim startup that seem to indicate a problem with a .vim file
somewhere in /usr/share/vim/vim63/ftplugin.
$ cat .vimrc
set cpoptions=C
$ touch foo.sql
$ vim foo.sql
"foo.sql" 0L, 0C
Error detected while processing /usr/share/vim/vim63/ftplugin/sql.vim:
line 25:
E15: Invalid expression:
E15: Invalid expression:
line 26:
E10: \ should be followed by /, ? or &
line 27:
E10: \ should be followed by /, ? or &
line 28:
E10: \ should be followed by /, ? or &
line 29:
E10: \ should be followed by /, ? or &
line 30:
E10: \ should be followed by /, ? or &
line 31:
E10: \ should be followed by /, ? or &
line 32:
E10: \ should be followed by /, ? or &
line 33:
E10: \ should be followed by /, ? or &
line 34:
E10: \ should be followed by /, ? or &
Hit ENTER or type command to continue
a workaround for the time being is to add the following to vimrc
augroup sqlscript "for SQL scripts
autocmd!
autocmd BufReadPre *.sql set cpoptions-=C
augroup end
ii vim-common 6.3-046+1 Vi IMproved - Common files
---------------------------------------
Received: (at 288449-done) by bugs.debian.org; 22 Mar 2005 07:41:30 +0000
>From habouzit@amaretto.inria.fr Mon Mar 21 23:41:30 2005
Return-path: <habouzit@amaretto.inria.fr>
Received: from concorde.inria.fr [192.93.2.39]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DDe12-0007a4-00; Mon, 21 Mar 2005 23:41:28 -0800
Received: from amaretto.inria.fr (amaretto.inria.fr [128.93.8.127])
by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2M7ekhM025505;
Tue, 22 Mar 2005 08:40:46 +0100
Received: by amaretto.inria.fr (Postfix, from userid 12657)
id 0549212C6D; Tue, 22 Mar 2005 08:40:45 +0100 (CET)
Date: Tue, 22 Mar 2005 08:40:45 +0100
From: Pierre HABOUZIT <pierre.habouzit@m4x.org>
To: James Moss <moss@acmeunix.org>, 288449-done@bugs.debian.org
Subject: Re: set cpoptions=C causes sql filetype errors on startup
Message-ID: <20050322074045.GA16240@amaretto.inria.fr>
References: <41D9AABC.80903@acmeunix.org>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM"
Content-Disposition: inline
In-Reply-To: <41D9AABC.80903@acmeunix.org>
User-Agent: Mutt/1.5.6+20040907i
X-Miltered: at concorde with ID 423FCBFE.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)!
Delivered-To: 288449-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
--yrj/dFKFPuw6o+aM
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Mon, Jan 03, 2005 at 03:27:40PM -0500, James Moss wrote:
> Package: vim-common
> Version: 1:6.3-046+1
>=20
> opening an existing sql file, or a new sql file with cpoptions=3DC causes=
=20
> errors on vim startup that seem to indicate a problem with a .vim file=20
> somewhere in /usr/share/vim/vim63/ftplugin.
>=20
> $ cat .vimrc
> set cpoptions=3DC
> $ touch foo.sql
> $ vim foo.sql
> "foo.sql" 0L, 0C
> Error detected while processing /usr/share/vim/vim63/ftplugin/sql.vim:
> line 25:
[...]
> Hit ENTER or type command to continue
>=20
> a workaround for the time being is to add the following to vimrc
>=20
> augroup sqlscript "for SQL scripts
> autocmd!
> autocmd BufReadPre *.sql set cpoptions-=3DC
> augroup end
not really. the thing is :
set cpoptions =3D C
means that vim won't concatenate lines that start with an '\'. but a
lot of .vim files assume that cpoptions has no C flag.
there is one simple workaround to set defaults *after* any other
system (I meand pristine vi .vim file) run :
au FileType * [put command here]
so , what you want is :
au FileType * set cpoptions=3DC
this will set cpotions, just after sql.vim has been sourced. I just
tried it, and it works. I also close the bug.
Cheers,
--=20
=B7O=B7 Pierre Habouzit
=B7=B7O
OOO http://www.madism.org
--yrj/dFKFPuw6o+aM
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCP8v9vGr7W6HudhwRAuSaAJ97T9Bj1M4AIZYZ3Y3h/xTBpamD7gCfawNP
nwfPW0g3yMe5cqerXhESzp4=
=2yQx
-----END PGP SIGNATURE-----
--yrj/dFKFPuw6o+aM--