Bug#380120: vim: Vim doesn't like "foo vi:"

Helge Kreutzmann debian at helgefjell.de
Thu Jul 27 17:13:06 UTC 2006

Package: vim
Version: 1:7.0-035+1
Severity: normal

Since 7.0 vim tries to be very smart (which I don't know if I like it, 
probably having to read more vim docs to return to the previous
behaviour). But now it went over the top. I frequenctly edit/create
files with line quotes (e.g. po-files). Now vim complained about a such
a file. I broke it down to the bare minium (it was original much
larger, I disected it down to the current example):

If the file contains the following:
--- 8< -- 8< --
"foo vi:"
--- 8< -- 8< --
then vim complains at startup:
"mini2" 1 line, 10 characters
Error detected while processing modelines:
line    1:
E518: Unknown option: "
Press ENTER or type command to continue

Now every time I edit the (larger) file, I have to press an additional
enter for a feature which I don't even intend to use for this file.
Vim should be taught[1] to only report this with an additional enter if
some special startup flag is provided or report it in the status line
at the bottom. But it should not interfer in daily edit sessions (if
I'd like that, I'd use another editor-alternative).

Thanks for taking care for vim.

[1] If I do have a file where modelines are deployed but broken, I
    might be interested in this information before startup. But this
    clearly is the exception, as general files tend to not have these
    lines (and if they have, they are not broken). A different issue
    of course is a broken startup file for vim, which I initially
    thought of when reading this line, as the message is not very
    clear where the error occured.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)

Versions of packages vim depends on:
ii  libc6                        2.3.6-15    GNU C Library: Shared libraries
ii  libgpmg1                     1.19.6-22   General Purpose Mouse - shared lib
ii  libncurses5                  5.5-2       Shared libraries for terminal hand
ii  vim-common                   1:7.0-035+1 Vi IMproved - Common files
ii  vim-runtime                  1:7.0-035+1 Vi IMproved - Runtime files

vim recommends no packages.

-- no debconf information
      Dr. Helge Kreutzmann                     debian at helgefjell.de
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20060727/31da9dc6/attachment.pgp

More information about the pkg-vim-maintainers mailing list