You are not logged in.

#1 2009-04-19 14:59:29

molni
Member
From: Slovakia
Registered: 2007-06-19
Posts: 12

vi and blue color

Hi all, is there any config file in which can I override some setting to get out of BLUE colour of commented text when editing via vi/vim? It's very annoying and very hard to read on my monitor text when it's blue.

----vi editor----:
#TEXT <- commented text is blue
NORMAL TEXT - is normal and readable (white).
----
The only solution for me is to change my terminal color from black background color to white when I want to read commented text inside vi/vim. But I prefer black background in terminal...
I'm searching for some better solution, just turn off colouring in vi/vim.

Offline

#2 2009-04-19 15:06:05

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: vi and blue color

Change blue in .Xdefaults if you can't read it.
Just something like this will do:
URxvt*color4:     rgb:70/70/ff

Offline

#3 2009-04-19 15:55:14

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: vi and blue color

:set background=dark

Or use a decent colorscheme.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#4 2009-04-21 11:45:17

molni
Member
From: Slovakia
Registered: 2007-06-19
Posts: 12

Re: vi and blue color

Thanks
:set background works well.

But I need to set up this in some  vi/vim config for every day use.
I tried to create ~/.vimrc but when i wrote there "set background=dark" it doesn't work.

Any hints will help me.

Offline

#5 2009-04-21 12:01:55

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: vi and blue color

use ~/.virc instead

Offline

#6 2009-04-21 17:52:24

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: vi and blue color

If - on your machine - vi is a link to vim, then use .vimrc (just do a 'cp /usr/share/vim/vimrc_example.vim ~/.vimrc').
Otherwise (ie the 'real' vi - then use .virc (cp /etc/virc ~/.virc)

If you use slackware (ok - a little disgression), then 'vi' is a link to 'elvis'.
For most other distro's, vi is a link to vim (or: alias vi=vim)

[edit]
Actually, for the real vi - you can also use the EXINIT environment variable:
[/edit]

Last edited by perbh (2009-04-21 17:54:55)

Offline

Board footer

Powered by FluxBB