Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

git diff better color highlighting with vimdiff and molokai

By: a guest on Jun 10th, 2013  |  syntax: Bash  |  size: 0.36 KB  |  views: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Actually I use vimdiff as difftool and vimdiff with molokai colorscheme to get a nice highlighting as you describe in your question.
  2.  
  3. 1- git config --global diff.tool vimdiff
  4. 2- in vim ":colo molokai"
  5.  
  6. * Molokai @ https://github.com/tomasr/molokai
  7. * Possible auto colorscheme with ~/.vimrc:
  8.  
  9. if &diff
  10.     set background=dark
  11.     colorscheme molokai
  12. endif