Re: Activating vim color?
--- "Miranda, Joel Louie M" <jmiranda@pd.state.gov>
wrote:
> Im using vi and I switch to vim, I was wondering
> what r the syntax to active
> the color codes? Its just black n white. Im coding
> and I wasn hoping I can
> activate the colors.
>
> Thanks
>
> --
> Louie
In your ~/.vimrc, add this:
---------------------------
" Switch syntax highlighting on, when the terminal has
colors
" Also switch on highlighting the last used search
pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
---------------------------
I don't exactly know what the if statement is about -
but this is all that is needed to get syntax
highlighting I think
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
Reply to: