Monday, June 11, 2018

Re: Minimal colorscheme

On Mon, Jun 11, Константин Изюмов 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.

You can clear highlighting for some groups defined in syncolor.vim. For
example the following will turn on highlighting only for comments

" ~/.vim/after/syntax/syncolor.vim

highlight Comment ctermfg=LightCyan

highlight clear Constant
highlight clear Identifier
highlight clear PreProc
highlight clear Special
highlight clear Statement
highlight clear Type

You may also want to clear highlighting for some groups contained in
comments. For example

" ~/.vim/after/syntax/erlang.vim

silent! syntax clear erlangAnnotation
silent! syntax clear erlangCommentAnnotation

Commands run with silent to suppress error about non-existing groups.
In this case erlangAnnotation was renamed to erlangCommentAnnotation in
recent version of runtime files.

Diff highlighting is very useful so you may want to keep it on

" ~/.vim/after/syntax/diff.vim

highlight link diffAdded DiffAdd
highlight link diffRemoved DiffDelete

-Dmitri

--
--
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:

Post a Comment