Wednesday, June 26, 2013

Re: How to change just 1 color of the default colorscheme

Todd Dickinson wrote:
> I'm using vim to edit Asterisk configuration files. The syntax checking makes vim an absolutely invaluable tool but the dark blue color assigned to comments is too dark to be easily discernible/readable against the black background.
>
> I don't mind the default colorscheme used with asterisk.vim syntax file.
>
> How can I modify just the COMMENT color setting within an Asterisk configuration file?
>
> I would have even considered copying the /colors/default.vim over and use as a template but the default color file doesn't contain any color settings.
>
> Any help appreciated.
>
* First, identify the color. I have a plugin, hilinks.vim, which you
can use :HLT! and then, as you move the cursor about, the syntax and
highlighting groups involved show upon the bottom of the display. You
can get it from http://www.drchip.org/astronaut/vim/index.html#HILINKS .

* Second, change the color. You can put overrides into
$HOME/.vim/after/colors/TheColorschemeNameHere.vim .

* Third, you could use hicolors, available at
http://www.drchip.org/astronaut/vim/index.html#HICOLORS, to both create
your own modified colorscheme and to check on what your colorscheme is
setting your highlighting groups to.
+ to check on your colorscheme with hicolor: :help hicolors
+ to then edit your colorscheme, creating your own: click with the
rightmouse button on whatever highlighting group you wish to change.
When done, click on the [WriteColorscheme] button on the colorscheme
editor window. You'll be prompted for a new colorscheme name to use.

Regards,
C Campbell

--
--
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/groups/opt_out.

No comments:

Post a Comment