On 2010-07-21, duffman wrote:
> Hi,
> 
> I tried to look up information online on this but wasn't able to find
> anything that worked.  I used Vi at my old job and loved the editing
> features it provided.  I've moved to a new place now and I am the only
> "developer" here.  I logged into a SunOS Unix box (bash shell) and
> while things work my vi editor looks very bland (no colors schemes and
> b&w) which makes reading and writing code difficult.  When I looked up
> info I found that I have to put the color coding information into
> my .vimrc file in my home directory.  I am in a corporation and under
> my home /home/myName I don't have a .vimrc file.  I found a sample one
> online that I copied but it didn't have any effect on my vi editor.  I
> also tried "syntax on" commands by vi said it wasn't recognized by vi.
> 
> Can anyone please help make my vi editor colorful?

The SunOS vi is not Vim, so it does not read ~/.vimrc.  Instead, it
looks for configuration information in ~/.exrc.

I don't think the SunOS vi supports color.  (I'll have access to a
SunOS machine later today but I don't at the moment.)  If you want a
colorful vi, you'll have to install some other "vi", such as Vim.
You can either ask your system administrator to do this for you, or
you can build your own Vim, install it in ~/bin, and add ~/bin to
your PATH.

The best way to get the Vim source these days is to use Mercurial,
but you probably don't have Mercurial on that SunOS system, either,
so you would have to install that as well.

Installing programs such as Mercurial and Vim is not difficult.  Let
us know if it is feasible for you to do that and we can give you
whatever further instructions you might need.

Regards,
Gary

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui