Subject: I learned something new today: VI colors
@VIA: CYBERIA
@MSGID: <
584AC6FA.10259.dove-lnx@vert.synchro.net>
Hi all!
So I do a lot of work in Linux and VI is my editor of choice. One thing that vi does well is syntax highlighting. This is something that I think that
most vi users are aware of. But did you know that there are different color themes that you can use?
I have a bit of a color vision problem. It is very difficult for me to
discern the text when it is dark blue on black. But as you know, much of the syntax highlighting uses dark blue on black. I'm not sure how vim decides
what color to use for the different highlighting, but I've found that it is
not always comfortable for me.
It turns out, I can change the highlight themes. If you look in: /usr/share/vim/vim74/colors, you'll see a list of predefined themes:
blue.vim
darkblue.vim
default.vim
delek.vim
desert.vim
elflord.vim
evening.vim
industry.vim
koehler.vim
morning.vim
murphy.vim
pablo.vim
peachpuff.vim
ron.vim
shine.vim
slate.vim
torte.vim
zellner.vim
The way these themes are used is by changing your ~/.vimrc file. Add the following:
---------------------
color elflord
syntax on
---------------------
You can obviously play around with the different themes to find the one that you like best.
Enjoy!
--- Mystic BBS v1.12 A31 (Raspberry Pi)
* Origin: Cyberia BBS | Cyberia.Darktech.Org | Kingwood, TX