Thursday, September 2, 2021

Re: how to replace very slow html/css syntax plugin

On Do, 02 Sep 2021, 'Fetchinson' via vim_use 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 ?

Does fedora really ship
https://github.com/skammer/vim-css-color/blob/master/after/syntax/css.vim
as default css syntax plugin? Or is this not rather an additional
plugin, that you can uninstall?

Note, the default Vim syntax runtime plugin is this one
https://github.com/vim/vim/blob/master/runtime/syntax/css.vim And my
guess is, that fedora does install this one. But if in doubt, you should
be able to simply drop that one into ~/.vim/syntax/ and it should work.

Best,
Christian
--
Zerstreuete Gedanken lieset man wieder zerstreuet und blättert in
ihnen herum.
-- Jean Paul

--
--
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/20210902144445.GB1795913%40256bit.org.

No comments:

Post a Comment