-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diff lines added/removed aren't green/red #36
Comments
I have the same problem. Red / green colour are a must. Has anyone figured this out already? |
you must perform the |
@justinmk, hmm... I've copied and pasted your snippet, but nothing really happens... 😥 |
You need to add the snippet to your vimrc and then restart vim... |
This is basic functionality. Ask on vi.stackexchange.com if you need help. |
@justinmk, you can try yourself. Make a As you suggested, I've created a question on vi@stackexchange. |
@coldhawaiian, here is the solution. Put these lines in your colorscheme molokai
" Better gitcommit messages
hi diffAdded ctermbg=NONE ctermfg=46 cterm=NONE guibg=NONE guifg=#00FF00 gui=NONE
hi diffRemoved ctermbg=NONE ctermfg=196 cterm=NONE guibg=NONE guifg=#FF0000 gui=NONE
hi link diffLine String
hi link diffSubname Normal And here a before / after 😬 |
My mistake. Molokai should not use those colors though. |
@justinmk, to which colours are you referring? |
I'm saying molokai should not change its colors. Removing personality defeats the purpose of a colorscheme. |
@justinmk, if you use git then vim has to show git's diff colours, whatever colour scheme you have. |
|
Thanks, @Atcold. This was enough for me:
(A little lighter than pure red/green fits better with the theme IMHO.) |
I'm used to viewing diffs of files where added lines are green, and removed lines are red. This is the output of
git diff
:When viewing such diffs with the Molokai theme, added lines are orange, while removed lines are cyan. This is the output of
vim temp.diff
:I've been trying to mess around with the Molokai settings to get the output to look more like what I have for
git diff
, especially in regard to the green/red colors of added/removed lines. In particular, I tried setting the following toRed
:Original
Modified
Original
Modified
Unfortunately, the changes didn't seem to do anything. Is there anything I can do to change the diff colors to be what I want?
The text was updated successfully, but these errors were encountered: