Saturday, November 30, 2024

Re: How to put modelines in a CSS file

Tim Chase said on Sat, 30 Nov 2024 21:01:33 -0600

>On 2024-11-30 21:48, Steve Litt wrote:
>> I needed to put vim:ts=3:sw=3:expandtab:nu:ic: into my CSS file. When
>> I tried:
>>
>> /* vim:ts=3:sw=3:expandtab:nu:ic: */
>>
>> The preceding gave me a "Unknown option: */" error when I reread the
>> file.
>[snip]
>> put the */ on the following line:
>>
>> /* vim:ts=3:sw=3:expandtab:nu:ic:
>> */
>
>Reading over `:help modeline`, I think your commented-version needs to
>omit the extra in-modeline colons (just keeping the first/last):
>
> /* vim: ts=3 sw=3 et nu ic: */
>
>worked from my testing, allowing everything in one line, and also not
>getting the vim error.

Thanks Tim!

SteveT

Steve Litt

http://444domains.com

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/20241130235802.17803744%40mydesk.domain.cxm.

No comments: