Hello,
On Thu, Sep 2, 2021 at 6:53 AM 'Fetchinson' via vim_use
<vim_use@googlegroups.com> wrote:
>
> Hi all,
>
> I opened this issue on the issue tracker,
>
> https://github.com/vim/vim/issues/8825
>
> which was eventually closed because the problem is not about vim but
> rather a plugin.
>
> The default synax plugin that gets shipped in fedora for html/css is
> very slow (see profiling information on the tracker, basically
> rgb2xterm gets called a lot of times) and I'd like to replace these by
> something better. But I'd like to keep the current behaviour for all
> other types of files because they seem fine.
>
> Can you recommend a good syntax highlight plugin for html/css? And if
> I use those from my .vim directory how do I forbid loading the stock
> ones in /usr/share/vim/vim82/syntax ?
>
If you place the new syntax file under the ~/.vim/syntax directory,
then it will override the syntax file shipped with Vim. This is
explained under ":help mysyntaxfile-replace".
For example, to disable the syntax highligting only for the html
files, you can create a html.vim file under ~/.vim/syntax directory
with only the following line:
let b:current_syntax = "html"
- Yegappan
--
--
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 on the web visit https://groups.google.com/d/msgid/vim_use/CAAW7x7kH8F6K3g2pCuSbRWLRW0Fa3we%3DuZKt3-Jx9syzjtXw6g%40mail.gmail.com.
Thursday, September 2, 2021
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment