I found that I got an error with
<!-- vim: ts=2 sw=2: -->
Error detected while processing modelines:
line 789 (the last line of my file, but I tried it also on lines 1 and 2
(after the <html> tag) with the same result)
E518: Unknown option: -->
Hit ENTER or type command to continue
Instead, I had to put this:
<!--
vim: ts=2 sw=2:
-->
I wonder why.
Having said this, because it works at least this way, I just want to say
that the modeline thing saves my bacon and I love it. I work in a rather
varied-opinion environment and have to accommodate many styles through
the different types of files I edit--makefiles, C files, HTML files,
Doxygen, bash, Perl, blah, blah, blah. Without modeline, I'd have to
change my .vimrc settings for nearly every file.
Russ
Matt Wlazlo wrote:
Yep, silly me for not RTFM fully. I just skipped right past that :/
Thanks guys.
On 6/25/06, Clinton Curry <[EMAIL PROTECTED]> wrote:
Wouldn't you put a colon before the --> instead of the quotation
mark? Explicitly,
<!-- vim: ts=2 sw=2: -->
On Jun 25, 2006, at 2:30 AM, Matt Wlazlo wrote:
> Hi,
>
> I'm a long time vim user, but have never figured this one out.
>
> How can I get a modeline to work at the end of a HTML file? I'd rather
> use a modeline than an autocommand..
>
> I've tried using:
>
> <!-- vim: ts=2 sw=2 " -->
>
> But the comment doesn't work as expected:
>
> E518: Unknown option: "
>
> Any ideas?
>
> Cheers,
> Matt.