I think you want:
/* vim:noexpandtab */
It is not a valid modeline.
Either remove the word 'set' and put the comment closer on a new line or add a
colon at the end of the modeline part:
/* vim: noexpandtab
*/
or
/* vim: set noexpandtab : */
Ben.
Doesn't look like a valid modeline to me. I always preferred that
format as you have above, but you gotta tell 'vim' when to *stop*, so I
had to use
/*
vim: et
*/
or similar (no "set", more later), which I *don't* like because it takes
up >1line, and
/* vim: et
*/
which just plain looks lopsided.
If my old compiler wouldn't grok lines like
// vim: et
you *can* stop it with a ':', like
/* vim: et: */
which should work.
Oh, and you just list the options, no "set". That's implicit in the
modeline itself, iirr.
Anyway, go crazy...
no, actually he should use one of
// vim: noexpandtab
or
/* vim: noexpandtab
*/
or
/* vim: set noexpandtab :*/
(see ":help modelines"): the first form (without "set") admits of no
text after the modeline on the same line. With "set", the modeline ends
in a colon, and there may be non-modeline text after the colon.
Best regards,
Tony.
--
Then a man said: Speak to us of Expectations.
He then said: If a man does not see or hear the waters of the Jordan,
then he should not taste the pomegranate or ply his wares in an open
market.
If a man would not labour in the salt and rock quarries then he should
not accept of the Earth that which he refuses to give of himself.
Such a man would expect a pear of a peach tree.
Such a man would expect a stone to lay an egg.
Such a man would expect Sears to assemble a lawnmower.
-- Kehlog Albran, "The Profit"
Yes, my mistake. I realized this after the other posts...I've only
ever used a modeline once, and then it was in a big header comment
block, so I didn't need to worry about the closing */ on the same
line.