1
0
mirror of https://github.com/gryf/.vim.git synced 2026-02-01 07:05:48 +01:00

Jellybeans colorscheme update, added repeat and zoom plugins, changed

vcscommand to support switching VCS on fly, changed python snippets (edbg)
added fitnesse wiki syntax.
This commit is contained in:
2011-04-16 06:53:59 +02:00
parent 056f63a34a
commit f205f3b36d
7 changed files with 317 additions and 65 deletions

View File

@@ -11,13 +11,13 @@
"
" File: jellybeans.vim
" Maintainer: NanoTech <http://nanotech.nanotechcorp.net/>
" Version: 1.3
" Last Change: October 25th, 2010
" Version: 1.4
" Last Change: April 11th, 2011
" Contributors: Daniel Herbert <http://pocket-ninja.com>,
" Henry So, Jr. <henryso@panix.com>,
" David Liang <bmdavll at gmail dot com>
"
" Copyright (c) 2009-2010 NanoTech
" Copyright (c) 2009-2011 NanoTech
"
" Permission is hereby granted, free of charge, to any person obtaining a copy
" of this software and associated documentation files (the "Software"), to deal
@@ -269,56 +269,59 @@ fun! s:X(group, fg, bg, attr, lcfg, lcbg)
if !l:fge && !l:bge
exec "hi ".a:group." guifg=#".a:fg." guibg=#".a:bg." ctermfg=".s:rgb(a:fg)." ctermbg=".s:rgb(a:bg)
elseif !l:fge && l:bge
exec "hi ".a:group." guifg=#".a:fg." guibg=NONE ctermfg=".s:rgb(a:fg)
exec "hi ".a:group." guifg=#".a:fg." guibg=NONE ctermfg=".s:rgb(a:fg)." ctermbg=NONE"
elseif l:fge && !l:bge
exec "hi ".a:group." guifg=NONE guibg=#".a:bg." ctermbg=".s:rgb(a:bg)
exec "hi ".a:group." guifg=NONE guibg=#".a:bg." ctermfg=NONE ctermbg=".s:rgb(a:bg)
endif
endif
if a:attr == ""
exec "hi ".a:group." gui=none cterm=none"
else
if a:attr == 'italic'
exec "hi ".a:group." gui=".a:attr." cterm=none"
else
exec "hi ".a:group." gui=".a:attr." cterm=".a:attr
let noitalic = join(filter(split(a:attr, ","), "v:val !=? 'italic'"), ",")
if empty(noitalic)
let noitalic = "none"
endif
exec "hi ".a:group." gui=".a:attr." cterm=".noitalic
endif
endfun
" }}}
call s:X("Normal","e8e8d3","151515","","White","")
set background=dark
if version >= 700
call s:X("CursorLine","","1c1c1c","","","")
call s:X("CursorColumn","","1c1c1c","","","")
call s:X("CursorLine","","1c1c1c","","","Black")
call s:X("CursorColumn","","1c1c1c","","","Black")
call s:X("ColorColumn","","1c1c1c","","","")
call s:X("MatchParen","ffffff","80a090","bold","","")
call s:X("MatchParen","ffffff","80a090","bold","","DarkCyan")
call s:X("TabLine","000000","b0b8c0","italic","","Black")
call s:X("TabLineFill","9098a0","","","","")
call s:X("TabLineSel","000000","f0f0f0","italic,bold","","")
call s:X("TabLineFill","9098a0","","","","Black")
call s:X("TabLineSel","000000","f0f0f0","italic,bold","Black","White")
" Auto-completion
call s:X("Pmenu","ffffff","000000","","","")
call s:X("PmenuSel","101010","eeeeee","","","")
call s:X("Pmenu","ffffff","606060","","White","Black")
call s:X("PmenuSel","101010","eeeeee","","Black","White")
endif
call s:X("Visual","","404040","","","")
call s:X("Visual","","404040","","","Black")
call s:X("Cursor","","b0d0f0","","","")
call s:X("Normal","e8e8d3","151515","","White","")
call s:X("LineNr","605958","151515","none","Black","")
call s:X("Comment","888888","","italic","Grey","")
call s:X("Todo","808080","","bold","","")
call s:X("Todo","808080","","bold","White","Black")
call s:X("StatusLine","000000","dddddd","italic","Black","White")
call s:X("StatusLineNC","ffffff","403c41","italic","White","Black")
call s:X("VertSplit","777777","403c41","italic","Black","Black")
call s:X("WildMenu","f0a0c0","302028","","Magenta","")
call s:X("Folded","a0a8b0","384048","italic","black","")
call s:X("FoldColumn","a0a8b0","384048","","","")
call s:X("SignColumn","a0a8b0","384048","","","")
call s:X("Folded","a0a8b0","384048","italic","Black","")
call s:X("FoldColumn","a0a8b0","384048","","","Black")
hi! link SignColumn FoldColumn
call s:X("Title","70b950","","bold","","")
call s:X("Title","70b950","","bold","Green","")
call s:X("Constant","cf6a4c","","","Red","")
call s:X("Special","799d6a","","","Green","")
@@ -333,23 +336,33 @@ call s:X("Function","fad07a","","","Yellow","")
call s:X("Statement","8197bf","","","DarkBlue","")
call s:X("PreProc","8fbfdc","","","LightBlue","")
hi link Operator Normal
hi! link Operator Normal
call s:X("Type","ffb964","","","Yellow","")
call s:X("NonText","606060","151515","","","")
call s:X("NonText","606060","151515","","Black","")
call s:X("SpecialKey","444444","1c1c1c","","","")
call s:X("SpecialKey","444444","1c1c1c","","Black","")
call s:X("Search","f0a0c0","302028","underline","Magenta","")
call s:X("Directory","dad085","","","","")
call s:X("ErrorMsg","","902020","","","")
hi link Error ErrorMsg
call s:X("Directory","dad085","","","Yellow","")
call s:X("ErrorMsg","","902020","","","DarkRed")
hi! link Error ErrorMsg
hi! link MoreMsg Special
call s:X("Question","65C254","","","Green","")
" Spell Checking
call s:X("SpellBad","","902020","underline","","DarkRed")
call s:X("SpellCap","","0000df","underline","","Blue")
call s:X("SpellRare","","540063","underline","","DarkMagenta")
call s:X("SpellLocal","","2D7067","underline","","Green")
" Diff
hi link diffRemoved Constant
hi link diffAdded String
hi! link diffRemoved Constant
hi! link diffAdded String
" VimDiff
@@ -360,30 +373,32 @@ call s:X("DiffText","","000940","","","DarkRed")
" PHP
hi link phpFunctions Function
hi! link phpFunctions Function
call s:X("StorageClass","c59f6f","","","Red","")
hi link phpSuperglobal Identifier
hi link phpQuoteSingle StringDelimiter
hi link phpQuoteDouble StringDelimiter
hi link phpBoolean Constant
hi link phpNull Constant
hi link phpArrayPair Operator
hi! link phpSuperglobal Identifier
hi! link phpQuoteSingle StringDelimiter
hi! link phpQuoteDouble StringDelimiter
hi! link phpBoolean Constant
hi! link phpNull Constant
hi! link phpArrayPair Operator
" Ruby
hi link rubySharpBang Comment
hi! link rubySharpBang Comment
call s:X("rubyClass","447799","","","DarkBlue","")
call s:X("rubyIdentifier","c6b6fe","","","","")
call s:X("rubyIdentifier","c6b6fe","","","Cyan","")
hi! link rubyConstant Type
hi! link rubyFunction Function
call s:X("rubyInstanceVariable","c6b6fe","","","Cyan","")
call s:X("rubySymbol","7697d6","","","Blue","")
hi link rubyGlobalVariable rubyInstanceVariable
hi link rubyModule rubyClass
call s:X("rubyControl","7597c6","","","","")
hi! link rubyGlobalVariable rubyInstanceVariable
hi! link rubyModule rubyClass
call s:X("rubyControl","7597c6","","","Blue","")
hi link rubyString String
hi link rubyStringDelimiter StringDelimiter
hi link rubyInterpolationDelimiter Identifier
hi! link rubyString String
hi! link rubyStringDelimiter StringDelimiter
hi! link rubyInterpolationDelimiter Identifier
call s:X("rubyRegexpDelimiter","540063","","","Magenta","")
call s:X("rubyRegexp","dd0093","","","DarkMagenta","")
@@ -392,26 +407,44 @@ call s:X("rubyRegexpSpecial","a40073","","","Magenta","")
call s:X("rubyPredefinedIdentifier","de5577","","","Red","")
" JavaScript
hi link javaScriptValue Constant
hi link javaScriptRegexpString rubyRegexp
hi! link javaScriptValue Constant
hi! link javaScriptRegexpString rubyRegexp
" CoffeeScript
hi! link coffeeRegExp javaScriptRegexpString
" C
hi link cOperator Constant
hi! link cOperator Constant
" Objective-C/Cocoa
hi link objcClass Type
hi link cocoaClass objcClass
hi link objcSubclass objcClass
hi link objcSuperclass objcClass
hi link objcDirective rubyClass
hi link cocoaFunction Function
hi link objcMethodName Identifier
hi link objcMethodArg Normal
hi link objcMessageName Identifier
hi! link objcClass Type
hi! link cocoaClass objcClass
hi! link objcSubclass objcClass
hi! link objcSuperclass objcClass
hi! link objcDirective rubyClass
hi! link cocoaFunction Function
hi! link objcMethodName Identifier
hi! link objcMethodArg Normal
hi! link objcMessageName Identifier
" Tag list
hi link TagListFileName Directory
" Plugins, etc.
hi! link TagListFileName Directory
call s:X("PreciseJumpTarget","B9ED67","405026","","White","Green")
" Manual overrides for 256-color terminals. Dark colors auto-map badly.
if !s:low_color
hi StatusLineNC ctermbg=234
hi Folded ctermbg=236
hi FoldColumn ctermbg=236
hi SignColumn ctermbg=236
hi DiffAdd ctermbg=22
hi DiffDelete ctermbg=52
hi DiffChange ctermbg=17
hi DiffText ctermbg=19
endif
" delete functions {{{
delf s:X