2

When I view git diff I see all those nice colors for removed and added lines. Yet when I git commit -av to both read and reject or accept the commit, all I have is ugly one-colored text.

My .gitconfig contains:

[color]
        diff = auto
        status = auto
        branch = auto
        ui = true [core]
        excludesfile = ~/.gitignore
        editor = vim

I know that it works because I used to have it set up on a Ubuntu machine. I am on OSX though having installed git with homebrew.

How do I get those nice colors?

1 Answer 1

3

I had to setup ~/.vimrc and add:

syntax on
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.