Skip to content
This repository
Browse code

[vim] add highlighting for gitcommit values (useful in fugitive)

This is a modified version of a patch from @nelstrom. Any mistakes are
my own (@altercation), the fine idea and original work is @nelstrom's.

This establishes a good default set of highlight values when viewing
the status window using @tpope's fugitive plugin.
  • Loading branch information...
commit 7a7e5c8818d717084730133ed6b84a3ffc9d0447 1 parent a8c9468
Drew Neil authored May 05, 2011 altercation committed May 05, 2011

Showing 1 changed file with 52 additions and 1 deletion. Show diff stats Hide diff stats

  1. 53  colors/solarized.vim
53  colors/solarized.vim
@@ -257,7 +257,8 @@ if (has("gui_running") && g:solarized_degrade == 0)
257 257
     let s:violet      = "#6c71c4"
258 258
     let s:blue        = "#268bd2"
259 259
     let s:cyan        = "#2aa198"
260  
-    let s:green       = "#859900"
  260
+    "let s:green       = "#859900" "original
  261
+    let s:green       = "#719e07" "experimental
261 262
 elseif (has("gui_running") && g:solarized_degrade == 1)
262 263
     " These colors are identical to the 256 color mode. They may be viewed
263 264
     " while in gui mode via "let g:solarized_degrade=1", though this is not
@@ -706,6 +707,56 @@ exe "hi! vimGroup"          .s:fmt_undb    .s:fg_blue   .s:bg_none
706 707
 hi! link diffAdded Statement
707 708
 hi! link diffLine Identifier
708 709
 "}}}
  710
+" git & gitcommit highlighting "{{{
  711
+"git
  712
+"exe "hi! gitDateHeader"
  713
+"exe "hi! gitIdentityHeader"
  714
+"exe "hi! gitIdentityKeyword"
  715
+"exe "hi! gitNotesHeader"
  716
+"exe "hi! gitReflogHeader"
  717
+"exe "hi! gitKeyword"
  718
+"exe "hi! gitIdentity"
  719
+"exe "hi! gitEmailDelimiter"
  720
+"exe "hi! gitEmail"
  721
+"exe "hi! gitDate"
  722
+"exe "hi! gitMode"
  723
+"exe "hi! gitHashAbbrev"
  724
+"exe "hi! gitHash"
  725
+"exe "hi! gitReflogMiddle"
  726
+"exe "hi! gitReference"
  727
+"exe "hi! gitStage"
  728
+"exe "hi! gitType"
  729
+"exe "hi! gitDiffAdded"
  730
+"exe "hi! gitDiffRemoved"
  731
+"gitcommit
  732
+"exe "hi! gitcommitSummary"      
  733
+exe "hi! gitcommitComment"      .s:fmt_ital     .s:fg_base01    .s:bg_none
  734
+hi! link gitcommitUntracked gitcommitComment
  735
+hi! link gitcommitDiscarded gitcommitComment
  736
+hi! link gitcommitSelected  gitcommitComment
  737
+exe "hi! gitcommitUnmerged"     .s:fmt_bold     .s:fg_green     .s:bg_none
  738
+exe "hi! gitcommitOnBranch"     .s:fmt_bold     .s:fg_base01    .s:bg_none
  739
+exe "hi! gitcommitBranch"       .s:fmt_bold     .s:fg_magenta   .s:bg_none
  740
+hi! link gitcommitNoBranch gitcommitBranch
  741
+exe "hi! gitcommitDiscardedType".s:fmt_none     .s:fg_red       .s:bg_none
  742
+exe "hi! gitcommitSelectedType" .s:fmt_none     .s:fg_green     .s:bg_none
  743
+"exe "hi! gitcommitUnmergedType"
  744
+"exe "hi! gitcommitType"
  745
+"exe "hi! gitcommitNoChanges"
  746
+"exe "hi! gitcommitHeader"
  747
+exe "hi! gitcommitHeader"       .s:fmt_none     .s:fg_base01    .s:bg_none
  748
+exe "hi! gitcommitUntrackedFile".s:fmt_bold     .s:fg_cyan      .s:bg_none
  749
+exe "hi! gitcommitDiscardedFile".s:fmt_bold     .s:fg_red       .s:bg_none
  750
+exe "hi! gitcommitSelectedFile" .s:fmt_bold     .s:fg_green     .s:bg_none
  751
+exe "hi! gitcommitUnmergedFile" .s:fmt_bold     .s:fg_yellow    .s:bg_none
  752
+exe "hi! gitcommitFile"         .s:fmt_bold     .s:fg_base0     .s:bg_none
  753
+hi! link gitcommitDiscardedArrow gitcommitDiscardedFile
  754
+hi! link gitcommitSelectedArrow  gitcommitSelectedFile
  755
+hi! link gitcommitUnmergedArrow  gitcommitUnmergedFile
  756
+"exe "hi! gitcommitArrow"
  757
+"exe "hi! gitcommitOverflow"
  758
+"exe "hi! gitcommitBlank"
  759
+" }}}
709 760
 " html highlighting "{{{
710 761
 " ---------------------------------------------------------------------
711 762
 exe "hi! htmlTag"           .s:fmt_none .s:fg_base01 .s:bg_none

0 notes on commit 7a7e5c8

Please sign in to comment.
Something went wrong with that request. Please try again.