On Wednesday, 26 June 2013 17:19:24 UTC+1, 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.
(If you're using actual console vim as opposed to gvim, this might not be relevant.) My approach was to modify the dark blue colour to one I can see properly, this has the advantage of fixing the colour everywhere it is used. I did it by defining a different blue and using that in my colourscheme, but you might be able to modify the existing colour - these lines in rgb.txt:
0 0 139 dark blue
0 0 139 DarkBlue
To test you could just modify them manually and restart gvim.
If you're using Windows such changes can be lost when vim is upgraded. This thread [1] described how I made sure the rgb.txt changes aren't lost. I think (from reading the help files, haven't tried it) that under *nix this isn't a problem since the rgb.txt file is part of the general system files.
See :help rgb.txt
regards,
Geoff
[1] http://vim.1045645.n5.nabble.com/change-display-colors-which-rule-causes-which-color-td5711079.html
--
--
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.
Wednesday, June 26, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment