[opensuse] vi - change BASH comment color to something readable
List, I finally took the time to find out how to change the color vi uses for BASH comments to change them from the dark blue to something I can actually read on the black vi background. It is a simple inclusion in your .vimrc file. I know a lot of you already know this, but I'll post it for the rest of us. In your home directory simply include the following line in your ~/.vimrc: hi Comment term=bold ctermfg=lightblue guifg=lightblue Also, remember that in bash config files the (") double-quote at the beginning of the line is a comment so you can include a little explanation in your .vimrc file as well. If you want to set your comment color and create the .vimrc file all in one step, then just open konsole and type 'cd' to make sure you are in your home directory and then just copy and paste this into konsole and hit return: echo 'hi Comment term=bold ctermfg=lightblue guifg=lightblue' >> .vimrc Another color I looked at and liked for the comment highlight was: hi Comment term=bold ctermfg=darkcyan guifg=darkcyan You can see what colors are available in vi by opening any file and then typing: :runtime syntax/colortest.vim The actual syntax files are in: /usr/share/vim/current/syntax Where current is just a symlink to the current version directory in /usr/share/vim/ for 11.0 it is /usr/share/vim/vim71 on 11.1Beta5 it's /usr/share/vim/vim72 Now I can read my comments again! -- David C. Rankin, J.D.,P.E. | Rankin Law Firm, PLLC | Countdown for openSuSE 11.1 510 Ochiltree Street | http://counter.opensuse.org/11.1/small Nacogdoches, Texas 75961 | Telephone: (936) 715-9333 | openSoftware und SystemEntwicklung Facsimile: (936) 715-9339 | http://www.opensuse.org/ www.rankinlawfirm.com | -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 19 November 2008 19:00, David C. Rankin wrote:
List,
I finally took the time to find out how to change the color vi uses for BASH comments to change them from the dark blue to something I can actually read on the black vi background. It is a simple inclusion in your .vimrc file. I know a lot of you already know this, but I'll post it for the rest of us.
Perhaps more succinct is to do this: :set background=dark or the ~/.vimrc counterpart: set background=dark
...
-- David C. Rankin
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Randall R Schulz wrote:
On Wednesday 19 November 2008 19:00, David C. Rankin wrote:
List,
I finally took the time to find out how to change the color vi uses for BASH comments to change them from the dark blue to something I can actually read on the black vi background. It is a simple inclusion in your .vimrc file. I know a lot of you already know this, but I'll post it for the rest of us.
Perhaps more succinct is to do this:
:set background=dark
or the ~/.vimrc counterpart:
set background=dark
Hmm.. I'll have to try that, but at first glance, I don't see how that will provide more contrast than I originally wanted to change away from with the "darkblue FG on black BG". I'll give it a shot. Who said things have to be intuitive ;-) -- David C. Rankin, J.D.,P.E. | Rankin Law Firm, PLLC | Countdown for openSuSE 11.1 510 Ochiltree Street | http://counter.opensuse.org/11.1/small Nacogdoches, Texas 75961 | Telephone: (936) 715-9333 | openSoftware und SystemEntwicklung Facsimile: (936) 715-9339 | http://www.opensuse.org/ www.rankinlawfirm.com | -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* David C. Rankin
Perhaps more succinct is to do this:
:set background=dark
or the ~/.vimrc counterpart:
set background=dark
Hmm.. I'll have to try that, but at first glance, I don't see how that will provide more contrast than I originally wanted to change away from with the "darkblue FG on black BG". I'll give it a shot. Who said things have to be intuitive ;-)
There are several great colorschemes. I always use :colorscheme elflord (use it with dark bg) But you can tab complete through all of them and try them out. -- Mads Martin Joergensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogical, with just a little bit more effort?" -- A. P. J. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, Nov 20, 2008 at 10:16:35AM +0100, Mads Martin Joergensen wrote:
Hmm.. I'll have to try that, but at first glance, I don't see how that will provide more contrast than I originally wanted to change away from with the "darkblue FG on black BG". I'll give it a shot. Who said things have to be intuitive ;-)
There are several great colorschemes. I always use
:colorscheme elflord (use it with dark bg)
You can also take a look at vimplugin-colorschemes package (OBS, editors project). -- Best regards / s pozdravem Petr Uzel, Packages maintainer --------------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: puzel@suse.cz Lihovarská 1060/12 tel: +420 284 028 964 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
David C. Rankin
-
Mads Martin Joergensen
-
Petr Uzel
-
Randall R Schulz