Monday, June 11, 2018

Re: Minimal colorscheme

On Mo, 11 Jun 2018, Константин Изюмов wrote:

> How to minimize colorscheme?
> I want have color identification only for comments and strings inside"".
> Color identification for type, standard words is no need for myself.

okay, this might be a hack, but you might get away with something like
this:

:let a=map(split(execute(':hi'), "\n"), {a,b -> match(b,'\ccomment\|string')==-1 ? execute('hi clear '.split(b)[0]):''})

Of course a nice readable and more maintainable solution would wrap all
of that in a handy function and handle error cases better.

Best,
Christian
--
In der Geschichte der Wissenschaften hat der ideale Teil ein
ander Verhältnis zum realen als in der übrigen Weltgeschichte.
-- Goethe, Maximen und Reflektionen, Nr. 1094

--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments: