Merge commit '5bd6d2c33658d53b6afc83afc7e1637b4c8d9811'

This commit is contained in:
Ethan Schoonover 2011-02-24 21:59:27 -08:00
commit d4ad5c1bf5

View file

@ -1,12 +1,11 @@
" Solarized vim theme"{{{
" "
" Ethan Schoonover <es@ethanschoonover.com> " Name: Solarized vim colorscheme
" " Author: Ethan Schoonover <es@ethanschoonover.com>
" Download the latest release and see screenshots/details on use: " URL: http://ethanschoonover.com/solarized
" http://ethanschoonover.com/solarized " (see this url for latest release & screenshots)
" " License: OSI approved MIT license (see end of this file)
" Licensed under the OSI approved MIT license (see end of this file)
" "
" Usage "{{{
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
" QUICKSTART: " QUICKSTART:
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
@ -20,6 +19,13 @@
" set background=light " set background=light
" colorscheme solarized " colorscheme solarized
" "
" pathogen users can install to:
"
" (your vim directory)/bundle/vim-solarized/colors/solarized.vim
"
" (note that vim-solarized could be just solarized, it's up to you, but
" if you pull from git you'll get this directory name unless you change it)
"
" Other options are detailed below. " Other options are detailed below.
" "
" IMPORTANT NOTE FOR TERMINAL USERS: " IMPORTANT NOTE FOR TERMINAL USERS:
@ -203,7 +209,9 @@
" Useful commands for testing colorschemes: " Useful commands for testing colorschemes:
" :source $VIMRUNTIME/syntax/hitest.vim " :source $VIMRUNTIME/syntax/hitest.vim
" :help highlight-groups " :help highlight-groups
" " :help cterm-colors
" :help group-name
"
" Useful links for developing colorschemes: " Useful links for developing colorschemes:
" http://www.vim.org/scripts/script.php?script_id=2937 " http://www.vim.org/scripts/script.php?script_id=2937
" http://vimcasts.org/episodes/creating-colorschemes-for-vim/ " http://vimcasts.org/episodes/creating-colorschemes-for-vim/
@ -211,6 +219,7 @@
" "
" "
" }}} " }}}
"
" Default option values"{{{ " Default option values"{{{
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
if !exists("g:solarized_termtrans") if !exists("g:solarized_termtrans")
@ -239,6 +248,7 @@ if !exists("g:solarized_contrast")
let g:solarized_contrast = "normal" let g:solarized_contrast = "normal"
endif endif
"}}} "}}}
"
" Colorscheme basic settings"{{{ " Colorscheme basic settings"{{{
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
if g:solarized_style == "dark" if g:solarized_style == "dark"
@ -262,6 +272,7 @@ let colors_name = "solarized"
" let colors_name = &background " let colors_name = &background
"endif "endif
"}}} "}}}
"
" GUI & CSApprox hexadecimal palettes"{{{ " GUI & CSApprox hexadecimal palettes"{{{
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
" "
@ -315,6 +326,7 @@ else
let s:g_green = "#5f8700" let s:g_green = "#5f8700"
endif endif
"}}} "}}}
"
" 256 Terminal (no CSApprox) and 16 color fallback palettes"{{{ " 256 Terminal (no CSApprox) and 16 color fallback palettes"{{{
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
" We also set this if gui is running as we use the optional formatting " We also set this if gui is running as we use the optional formatting
@ -383,6 +395,7 @@ else " must be in an 8 color or less terminal
let s:ob = ",bold" let s:ob = ",bold"
endif endif
"}}} "}}}
"
" Formatting options and null values for passthrough effect"{{{ " Formatting options and null values for passthrough effect"{{{
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
let s:g_none = "NONE" let s:g_none = "NONE"
@ -393,6 +406,7 @@ let s:c = ",undercurl"
let s:r = ",reverse" let s:r = ",reverse"
let s:s = ",standout" let s:s = ",standout"
"}}} "}}}
"
" Alternate light schemes "{{{ " Alternate light schemes "{{{
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
if g:solarized_style == "light" if g:solarized_style == "light"
@ -424,6 +438,7 @@ if g:solarized_style == "light"
let s:g_back = s:g_base03 let s:g_back = s:g_base03
endif endif
"}}} "}}}
"
" Optional contrast schemes "{{{ " Optional contrast schemes "{{{
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
if g:solarized_contrast == "high" if g:solarized_contrast == "high"
@ -438,6 +453,7 @@ if g:solarized_contrast == "high"
let s:g_back = s:g_back let s:g_back = s:g_back
endif endif
"}}} "}}}
"
" Overrides dependent on user specified values"{{{ " Overrides dependent on user specified values"{{{
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
if g:solarized_termtrans == 1 if g:solarized_termtrans == 1
@ -462,6 +478,7 @@ else
let s:i = "" let s:i = ""
endif endif
"}}} "}}}
"
" Highlighting primitives"{{{ " Highlighting primitives"{{{
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
@ -525,14 +542,18 @@ exe "let s:sp_cyan = ' guisp=".s:g_cyan ."'"
exe "let s:fmt_none = ' cterm=NONE". " gui=NONE". " term=NONE". "'" exe "let s:fmt_none = ' cterm=NONE". " gui=NONE". " term=NONE". "'"
exe "let s:fmt_bold = ' cterm=NONE".s:b." gui=NONE".s:b." term=NONE".s:b."'" exe "let s:fmt_bold = ' cterm=NONE".s:b." gui=NONE".s:b." term=NONE".s:b."'"
exe "let s:fmt_undr = ' cterm=NONE".s:u." gui=NONE".s:u." term=NONE".s:u."'" exe "let s:fmt_undr = ' cterm=NONE".s:u." gui=NONE".s:u." term=NONE".s:u."'"
exe "let s:fmt_undb = ' cterm=NONE".s:u.s:b." gui=NONE".s:u.s:b." term=NONE".s:u.s:b."'" exe "let s:fmt_undb = ' cterm=NONE".s:u.s:b." gui=NONE".s:u.s:b.
exe "let s:fmt_uopt = ' cterm=NONE".s:ou." gui=NONE".s:ou." term=NONE".s:ou."'" \" term=NONE".s:u.s:b."'"
exe "let s:fmt_bopt = ' cterm=NONE".s:ob." gui=NONE".s:ob." term=NONE".s:ob."'" exe "let s:fmt_uopt = ' cterm=NONE".s:ou." gui=NONE".s:ou.
\" term=NONE".s:ou."'"
exe "let s:fmt_bopt = ' cterm=NONE".s:ob." gui=NONE".s:ob.
\" term=NONE".s:ob."'"
exe "let s:fmt_curl = ' cterm=NONE".s:c." gui=NONE".s:c." term=NONE".s:c."'" exe "let s:fmt_curl = ' cterm=NONE".s:c." gui=NONE".s:c." term=NONE".s:c."'"
exe "let s:fmt_ital = ' cterm=NONE".s:i." gui=NONE".s:i." term=NONE".s:i."'" exe "let s:fmt_ital = ' cterm=NONE".s:i." gui=NONE".s:i." term=NONE".s:i."'"
exe "let s:fmt_revr = ' cterm=NONE".s:r." gui=NONE".s:r." term=NONE".s:r."'" exe "let s:fmt_revr = ' cterm=NONE".s:r." gui=NONE".s:r." term=NONE".s:r."'"
exe "let s:fmt_stnd = ' cterm=NONE".s:s." gui=NONE".s:s." term=NONE".s:s."'" exe "let s:fmt_stnd = ' cterm=NONE".s:s." gui=NONE".s:s." term=NONE".s:s."'"
"}}} "}}}
"
" Basic highlighting"{{{ " Basic highlighting"{{{
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
" note that link syntax to avoid duplicate configuration doesn't work with the " note that link syntax to avoid duplicate configuration doesn't work with the
@ -556,14 +577,14 @@ exe "hi PreCondit" . s:fg_base00 .s:bg_back .s:fmt_none
exe "hi VertSplit" . s:fg_base00 .s:bg_base02 .s:fmt_none exe "hi VertSplit" . s:fg_base00 .s:bg_base02 .s:fmt_none
exe "hi SignColumn" . s:fg_base00 .s:bg_base02 .s:fmt_none exe "hi SignColumn" . s:fg_base00 .s:bg_base02 .s:fmt_none
exe "hi String" . s:fg_base0 .s:bg_none .s:fmt_none
exe "hi Folded" . s:fg_base0 .s:bg_base01 .s:fmt_none
exe "hi Delimiter" . s:fg_base1 .s:bg_none .s:fmt_none
exe "hi Underlined" . s:fg_base1 .s:bg_none .s:fmt_none exe "hi Underlined" . s:fg_base1 .s:bg_none .s:fmt_none
exe "hi Title" . s:fg_base1 .s:bg_none .s:fmt_none exe "hi Title" . s:fg_base1 .s:bg_none .s:fmt_none
exe "hi String" . s:fg_yellow .s:bg_none .s:fmt_none
exe "hi WildMenu" . s:fg_base1 .s:bg_base02 .s:fmt_none exe "hi WildMenu" . s:fg_base1 .s:bg_base02 .s:fmt_none
exe "hi Conceal" . s:fg_base1 .s:bg_base01 .s:fmt_none exe "hi Conceal" . s:fg_base1 .s:bg_base01 .s:fmt_none
exe "hi Folded" . s:fg_base0 .s:bg_base01 .s:fmt_none
exe "hi FoldColumn" . s:fg_base1 .s:bg_base01 .s:fmt_none exe "hi FoldColumn" . s:fg_base1 .s:bg_base01 .s:fmt_none
exe "hi StatusLineNC" . s:fg_base1 .s:bg_base02 .s:fmt_none exe "hi StatusLineNC" . s:fg_base1 .s:bg_base02 .s:fmt_none
@ -584,7 +605,6 @@ exe "hi SpecialChar" . s:fg_red .s:bg_none .s:fmt_none
exe "hi SpecialComment" . s:fg_red .s:bg_none .s:fmt_none exe "hi SpecialComment" . s:fg_red .s:bg_none .s:fmt_none
exe "hi Debug" . s:fg_red .s:bg_none .s:fmt_none exe "hi Debug" . s:fg_red .s:bg_none .s:fmt_none
exe "hi Tag" . s:fg_red .s:bg_none .s:fmt_none exe "hi Tag" . s:fg_red .s:bg_none .s:fmt_none
exe "hi Conditional" . s:fg_red .s:bg_none .s:fmt_none
exe "hi Repeat" . s:fg_red .s:bg_none .s:fmt_none exe "hi Repeat" . s:fg_red .s:bg_none .s:fmt_none
exe "hi WarningMsg" . s:fg_red .s:bg_none .s:fmt_none exe "hi WarningMsg" . s:fg_red .s:bg_none .s:fmt_none
exe "hi ErrorMsg" . s:fg_red .s:bg_none .s:fmt_none exe "hi ErrorMsg" . s:fg_red .s:bg_none .s:fmt_none
@ -592,6 +612,8 @@ exe "hi Error" . s:fg_red .s:bg_none .s:fmt_none
exe "hi Search" . s:fg_red .s:bg_yellow .s:fmt_bold exe "hi Search" . s:fg_red .s:bg_yellow .s:fmt_bold
exe "hi IncSearch" . s:fg_red .s:bg_yellow .s:fmt_bold exe "hi IncSearch" . s:fg_red .s:bg_yellow .s:fmt_bold
exe "hi Conditional" . s:fg_magenta.s:bg_none .s:fmt_none
exe "hi Identifier" .s:fg_violet .s:bg_none .s:fmt_none exe "hi Identifier" .s:fg_violet .s:bg_none .s:fmt_none
exe "hi Directory" . s:fg_blue .s:bg_none .s:fmt_none exe "hi Directory" . s:fg_blue .s:bg_none .s:fmt_none
@ -605,8 +627,9 @@ exe "hi ModeMsg" . s:fg_blue .s:bg_none .s:fmt_none
exe "hi MoreMsg" . s:fg_blue .s:bg_none .s:fmt_none exe "hi MoreMsg" . s:fg_blue .s:bg_none .s:fmt_none
exe "hi Operator" . s:fg_cyan .s:bg_none .s:fmt_none exe "hi Operator" . s:fg_cyan .s:bg_none .s:fmt_none
exe "hi VarId" . s:fg_blue .s:bg_none .s:fmt_none exe "hi VarId" . s:fg_base00 .s:bg_none .s:fmt_none
"}}} "}}}
"
" Special highlighting"{{{ " Special highlighting"{{{
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
@ -627,9 +650,17 @@ exe "hi SpellLocal" . s:fg_none .s:bg_none .s:fmt_curl .s:sp_yellow
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
" vim highlighting " vim highlighting
exe "hi vimLineComment" . s:fg_base01 .s:bg_none .s:fmt_none exe "hi vimLineComment" . s:fg_base01 .s:bg_none .s:fmt_none
exe "hi vimVar" . s:fg_green .s:bg_none .s:fmt_none exe "hi vimVar" . s:fg_cyan .s:bg_none .s:fmt_none
exe "hi helpExample" . s:fg_green .s:bg_none .s:fmt_none exe "hi helpExample" . s:fg_base1 .s:bg_none .s:fmt_none
exe "hi helpSpecial" . s:fg_yellow .s:bg_none .s:fmt_none
exe "hi helpOption" . s:fg_cyan .s:bg_none .s:fmt_none
exe "hi helpNote" . s:fg_magenta.s:bg_none .s:fmt_none
exe "hi helpVim" . s:fg_magenta.s:bg_none .s:fmt_none
exe "hi helpHyperTextJump".s:fg_blue .s:bg_none .s:fmt_undr
exe "hi helpHyperTextEntry".s:fg_green .s:bg_none .s:fmt_none
exe "hi vimIsCommand" . s:fg_base00 .s:bg_none .s:fmt_none exe "hi vimIsCommand" . s:fg_base00 .s:bg_none .s:fmt_none
exe "hi vimSynMtchOpt". s:fg_yellow .s:bg_none .s:fmt_none
exe "hi vimSynType" . s:fg_cyan .s:bg_none .s:fmt_none
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
" html highlighting " html highlighting
@ -642,6 +673,44 @@ exe "hi htmlEndTag" . s:fg_red .s:bg_none .s:fmt_none
" perl highlighting " perl highlighting
exe "hi perlHereDoc" . s:fg_base1 .s:bg_back .s:fmt_none exe "hi perlHereDoc" . s:fg_base1 .s:bg_back .s:fmt_none
"}}} "}}}
"
" Haskell extended highlighting"{{{
" ---------------------------------------------------------------------
" For use with syntax/haskell.vim : Haskell Syntax File
" http://www.vim.org/scripts/script.php?script_id=3034
" See also Steffen Siering's github repository:
" http://github.com/urso/dotrc/blob/master/vim/syntax/haskell.vim
" ---------------------------------------------------------------------
"
" Treat True and False specially, see the plugin referenced above
let hs_highlight_boolean=1
" highlight delims, see the plugin referenced above
let hs_highlight_delimiters=1
exe "hi hsStructure" . s:fg_cyan .s:bg_none .s:fmt_none
exe "hi hs_hlFunctionName" . s:fg_blue .s:bg_none
exe "hi hsStatement" . s:fg_cyan .s:bg_none .s:fmt_none
exe "hi hsImportLabel" . s:fg_cyan .s:bg_none .s:fmt_none
exe "hi hs_OpFunctionName" . s:fg_yellow .s:bg_none .s:fmt_none
exe "hi hs_DeclareFunction" . s:fg_orange .s:bg_none .s:fmt_none
exe "hi hsVarSym" . s:fg_cyan .s:bg_none .s:fmt_none
exe "hi hsType" . s:fg_yellow .s:bg_none .s:fmt_none
exe "hi hsTypedef" . s:fg_cyan .s:bg_none .s:fmt_none
exe "hi hsModuleName" . s:fg_violet .s:bg_none .s:fmt_undr
exe "hi hsModuleStartLabel" . s:fg_magenta.s:bg_none .s:fmt_none
hi link hsImportParams Delimiter
hi link hsDelimTypeExport Delimiter
hi link hsModuleStartLabel hsStructure
hi link hsModuleWhereLabel hsModuleStartLabel
" following is for the haskell-conceal plugin
" the first two items don't have an impact, but better safe
exe "hi hsNiceOperator" . s:fg_cyan .s:bg_none .s:fmt_none
exe "hi hsniceoperator" . s:fg_cyan .s:bg_none .s:fmt_none
exe "hi Conceal" . s:fg_cyan .s:bg_none .s:fmt_none
"}}}
"
" Cursor line/column and similar modern vim features"{{{ " Cursor line/column and similar modern vim features"{{{
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
if version >= 700 if version >= 700
@ -666,8 +735,10 @@ exe "hi PmenuSbar" . s:fg_base00 .s:bg_base2 .s:fmt_none
exe "hi PmenuThumb" . s:fg_base03 .s:bg_base00 .s:fmt_none exe "hi PmenuThumb" . s:fg_base03 .s:bg_base00 .s:fmt_none
endif endif
"}}} "}}}
"
" License "{{{ " License "{{{
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
"
" Copyright (c) 2011 Ethan Schoonover " Copyright (c) 2011 Ethan Schoonover
" "
" Permission is hereby granted, free of charge, to any person obtaining a copy " Permission is hereby granted, free of charge, to any person obtaining a copy