You are not logged in.
Pages: 1
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
Change blue in .Xdefaults if you can't read it.
Just something like this will do:
URxvt*color4: rgb:70/70/ff
Offline
: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
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
use ~/.virc instead
Offline
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
Pages: 1