tomkersten-vixploder 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. data/History.txt +4 -0
  2. data/Manifest.txt +105 -0
  3. data/PostInstall.txt +21 -0
  4. data/README.rdoc +131 -0
  5. data/Rakefile +21 -0
  6. data/bin/256colors2.pl +63 -0
  7. data/bin/colortest +365 -0
  8. data/bin/vixplode +10 -0
  9. data/lib/dotfiles/aliases +30 -0
  10. data/lib/dotfiles/gvimrc +20 -0
  11. data/lib/dotfiles/vim/.VimballRecord +2 -0
  12. data/lib/dotfiles/vim/after/ftplugin/actionscript_snippets.vim +9 -0
  13. data/lib/dotfiles/vim/after/ftplugin/aspvbs_snippets.vim +17 -0
  14. data/lib/dotfiles/vim/after/ftplugin/c_snippets.vim +58 -0
  15. data/lib/dotfiles/vim/after/ftplugin/css_snippets.vim +30 -0
  16. data/lib/dotfiles/vim/after/ftplugin/django_model_snippets.vim +61 -0
  17. data/lib/dotfiles/vim/after/ftplugin/django_template_snippets.vim +32 -0
  18. data/lib/dotfiles/vim/after/ftplugin/f-script_snippets.vim +14 -0
  19. data/lib/dotfiles/vim/after/ftplugin/haskell_snippets.vim +9 -0
  20. data/lib/dotfiles/vim/after/ftplugin/html_snippets.vim +57 -0
  21. data/lib/dotfiles/vim/after/ftplugin/java_snippets.vim +52 -0
  22. data/lib/dotfiles/vim/after/ftplugin/javascript_snippets.vim +10 -0
  23. data/lib/dotfiles/vim/after/ftplugin/latex_snippets.vim +13 -0
  24. data/lib/dotfiles/vim/after/ftplugin/logo_snippets.vim +9 -0
  25. data/lib/dotfiles/vim/after/ftplugin/markdown_snippets.vim +10 -0
  26. data/lib/dotfiles/vim/after/ftplugin/movable_type_snippets.vim +14 -0
  27. data/lib/dotfiles/vim/after/ftplugin/objc_snippets.vim +53 -0
  28. data/lib/dotfiles/vim/after/ftplugin/ocaml_snippets.vim +26 -0
  29. data/lib/dotfiles/vim/after/ftplugin/perl_snippets.vim +23 -0
  30. data/lib/dotfiles/vim/after/ftplugin/php_snippets.vim +30 -0
  31. data/lib/dotfiles/vim/after/ftplugin/phpdoc_snippets.vim +19 -0
  32. data/lib/dotfiles/vim/after/ftplugin/propel_snippets.vim +14 -0
  33. data/lib/dotfiles/vim/after/ftplugin/python_snippets.vim +202 -0
  34. data/lib/dotfiles/vim/after/ftplugin/rails_snippets.vim +54 -0
  35. data/lib/dotfiles/vim/after/ftplugin/ruby_snippets.vim +32 -0
  36. data/lib/dotfiles/vim/after/ftplugin/sh_snippets.vim +12 -0
  37. data/lib/dotfiles/vim/after/ftplugin/slate_snippets.vim +19 -0
  38. data/lib/dotfiles/vim/after/ftplugin/smarty_snippets.vim +35 -0
  39. data/lib/dotfiles/vim/after/ftplugin/symfony_snippets.vim +21 -0
  40. data/lib/dotfiles/vim/after/ftplugin/tcl_snippets.vim +14 -0
  41. data/lib/dotfiles/vim/after/ftplugin/template_toolkit_snippets.vim +13 -0
  42. data/lib/dotfiles/vim/after/ftplugin/tex_snippets.vim +13 -0
  43. data/lib/dotfiles/vim/after/ftplugin/xhtml_snippets.vim +48 -0
  44. data/lib/dotfiles/vim/autoload/fakeclip.vim +253 -0
  45. data/lib/dotfiles/vim/autoload/rails.vim +4377 -0
  46. data/lib/dotfiles/vim/autoload/rubycomplete.vim +802 -0
  47. data/lib/dotfiles/vim/colors/inkpot.vim +212 -0
  48. data/lib/dotfiles/vim/colors/ir_black.vim +212 -0
  49. data/lib/dotfiles/vim/colors/ir_black_mod.vim +213 -0
  50. data/lib/dotfiles/vim/colors/railscasts.vim +100 -0
  51. data/lib/dotfiles/vim/colors/rubyblue.vim +74 -0
  52. data/lib/dotfiles/vim/colors/twilight.vim +75 -0
  53. data/lib/dotfiles/vim/colors/twilight2.vim +74 -0
  54. data/lib/dotfiles/vim/colors/wombat256.vim +302 -0
  55. data/lib/dotfiles/vim/compiler/eruby.vim +41 -0
  56. data/lib/dotfiles/vim/compiler/ruby.vim +68 -0
  57. data/lib/dotfiles/vim/compiler/rubyunit.vim +35 -0
  58. data/lib/dotfiles/vim/doc/NERD_tree.txt +1235 -0
  59. data/lib/dotfiles/vim/doc/fakeclip.txt +190 -0
  60. data/lib/dotfiles/vim/doc/matchit.txt +406 -0
  61. data/lib/dotfiles/vim/doc/project.txt +710 -0
  62. data/lib/dotfiles/vim/doc/rails.txt +1123 -0
  63. data/lib/dotfiles/vim/doc/snippets_emu.txt +354 -0
  64. data/lib/dotfiles/vim/doc/surround.txt +218 -0
  65. data/lib/dotfiles/vim/doc/tags +433 -0
  66. data/lib/dotfiles/vim/filetype.vim +13 -0
  67. data/lib/dotfiles/vim/ftdetect/gist.vim +3 -0
  68. data/lib/dotfiles/vim/ftdetect/ruby.vim +14 -0
  69. data/lib/dotfiles/vim/ftplugin/eruby.vim +101 -0
  70. data/lib/dotfiles/vim/ftplugin/ruby.vim +230 -0
  71. data/lib/dotfiles/vim/indent/eruby.vim +73 -0
  72. data/lib/dotfiles/vim/indent/ruby.vim +373 -0
  73. data/lib/dotfiles/vim/plugin/NERD_tree.vim +3536 -0
  74. data/lib/dotfiles/vim/plugin/comments.vim +321 -0
  75. data/lib/dotfiles/vim/plugin/fakeclip.vim +174 -0
  76. data/lib/dotfiles/vim/plugin/fuzzyfinder.vim +1676 -0
  77. data/lib/dotfiles/vim/plugin/fuzzyfinder_textmate.vim +150 -0
  78. data/lib/dotfiles/vim/plugin/gist.vim +241 -0
  79. data/lib/dotfiles/vim/plugin/gitdiff.vim +141 -0
  80. data/lib/dotfiles/vim/plugin/matchit.vim +812 -0
  81. data/lib/dotfiles/vim/plugin/mru.vim +787 -0
  82. data/lib/dotfiles/vim/plugin/rails.vim +310 -0
  83. data/lib/dotfiles/vim/plugin/rspec.vim +12 -0
  84. data/lib/dotfiles/vim/plugin/snippets.vim +17 -0
  85. data/lib/dotfiles/vim/plugin/snippetsEmu.vim +973 -0
  86. data/lib/dotfiles/vim/plugin/supertab.vim +531 -0
  87. data/lib/dotfiles/vim/plugin/surround.vim +632 -0
  88. data/lib/dotfiles/vim/ref_vimrc +80 -0
  89. data/lib/dotfiles/vim/ruby/fuzzy_file_finder.rb +353 -0
  90. data/lib/dotfiles/vim/syntax/eruby.vim +85 -0
  91. data/lib/dotfiles/vim/syntax/haml.vim +113 -0
  92. data/lib/dotfiles/vim/syntax/mkd.vim +86 -0
  93. data/lib/dotfiles/vim/syntax/ruby.vim +324 -0
  94. data/lib/dotfiles/vim/syntax/sass.vim +93 -0
  95. data/lib/dotfiles/vimrc +269 -0
  96. data/lib/vixplode/cli.rb +73 -0
  97. data/lib/vixploder.rb +6 -0
  98. data/script/console +10 -0
  99. data/script/destroy +14 -0
  100. data/script/generate +14 -0
  101. data/spec/spec.opts +1 -0
  102. data/spec/spec_helper.rb +10 -0
  103. data/spec/vixplode_cli_spec.rb +15 -0
  104. data/spec/vixploder_spec.rb +7 -0
  105. data/tasks/rspec.rake +21 -0
  106. metadata +202 -8
@@ -0,0 +1,100 @@
1
+ " Vim color scheme
2
+ "
3
+ " Name: railscasts.vim
4
+ " Maintainer: Nick Moffitt <nick@zork.net>
5
+ " Last Change: 01 Mar 2008
6
+ " License: WTFPL <http://sam.zoy.org/wtfpl/>
7
+ " Version: 2.1
8
+ "
9
+ " This theme is based on Josh O'Rourke's Vim clone of the railscast
10
+ " textmate theme. The key thing I have done here is supply 256-color
11
+ " terminal equivalents for as many of the colors as possible, and fixed
12
+ " up some of the funny behaviors for editing e-mails and such.
13
+ "
14
+ " To use for gvim:
15
+ " 1: install this file as ~/.vim/colors/railscasts.vim
16
+ " 2: put "colorscheme railscasts" in your .gvimrc
17
+ "
18
+ " If you are using Ubuntu, you can get the benefit of this in your
19
+ " terminals using ordinary vim by taking the following steps:
20
+ "
21
+ " 1: sudo apt-get install ncurses-term
22
+ " 2: put the following in your .vimrc
23
+ " if $COLORTERM == 'gnome-terminal'
24
+ " set term=gnome-256color
25
+ " colorscheme railscasts
26
+ " else
27
+ " colorscheme default
28
+ " endif
29
+ " 3: if you wish to use this with screen, add the following to your .screenrc:
30
+ " attrcolor b ".I"
31
+ " termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
32
+ " defbce "on"
33
+ " term screen-256color-bce
34
+
35
+ set background=dark
36
+ hi clear
37
+ if exists("syntax_on")
38
+ syntax reset
39
+ endif
40
+
41
+ let g:colors_name = "railscasts"
42
+
43
+ hi link htmlTag xmlTag
44
+ hi link htmlTagName xmlTagName
45
+ hi link htmlEndTag xmlEndTag
46
+
47
+ highlight Normal guifg=#E6E1DC guibg=#2B2B2B ctermbg=234
48
+ highlight Cursor guifg=#000000 ctermfg=0 guibg=#FFFFFF ctermbg=15
49
+ highlight CursorLine guibg=#000000 ctermbg=233 cterm=NONE
50
+
51
+ highlight Comment guifg=#BC9458 ctermfg=180 gui=italic
52
+ highlight Constant guifg=#6D9CBE ctermfg=73
53
+ highlight Define guifg=#CC7833 ctermfg=173
54
+ highlight Error guifg=#FFC66D ctermfg=221 guibg=#990000 ctermbg=88
55
+ highlight Function guifg=#FFC66D ctermfg=221 gui=NONE cterm=NONE
56
+ highlight Identifier guifg=#6D9CBE ctermfg=73 gui=NONE cterm=NONE
57
+ highlight Include guifg=#CC7833 ctermfg=173 gui=NONE cterm=NONE
58
+ highlight PreCondit guifg=#CC7833 ctermfg=173 gui=NONE cterm=NONE
59
+ highlight Keyword guifg=#CC7833 ctermfg=173 cterm=NONE
60
+ highlight LineNr guifg=#2B2B2B ctermfg=159 guibg=#C0C0FF
61
+ highlight Number guifg=#A5C261 ctermfg=107
62
+ highlight PreProc guifg=#E6E1DC ctermfg=103
63
+ highlight Search guifg=NONE ctermfg=NONE guibg=#2b2b2b ctermbg=235 gui=italic cterm=underline
64
+ highlight Statement guifg=#CC7833 ctermfg=173 gui=NONE cterm=NONE
65
+ highlight String guifg=#A5C261 ctermfg=107
66
+ highlight Title guifg=#FFFFFF ctermfg=15
67
+ highlight Type guifg=#DA4939 ctermfg=167 gui=NONE cterm=NONE
68
+ highlight Visual guibg=#5A647E ctermbg=60
69
+
70
+ highlight DiffAdd guifg=#E6E1DC ctermfg=7 guibg=#519F50 ctermbg=71
71
+ highlight DiffDelete guifg=#E6E1DC ctermfg=7 guibg=#660000 ctermbg=52
72
+ highlight Special guifg=#DA4939 ctermfg=167
73
+
74
+ highlight pythonBuiltin guifg=#6D9CBE ctermfg=73 gui=NONE cterm=NONE
75
+ highlight rubyBlockParameter guifg=#FFFFFF ctermfg=15
76
+ highlight rubyClass guifg=#FFFFFF ctermfg=15
77
+ highlight rubyConstant guifg=#DA4939 ctermfg=167
78
+ highlight rubyInstanceVariable guifg=#D0D0FF ctermfg=189
79
+ highlight rubyInterpolation guifg=#519F50 ctermfg=107
80
+ highlight rubyLocalVariableOrMethod guifg=#D0D0FF ctermfg=189
81
+ highlight rubyPredefinedConstant guifg=#DA4939 ctermfg=167
82
+ highlight rubyPseudoVariable guifg=#FFC66D ctermfg=221
83
+ highlight rubyStringDelimiter guifg=#A5C261 ctermfg=143
84
+
85
+ highlight xmlTag guifg=#E8BF6A ctermfg=179
86
+ highlight xmlTagName guifg=#E8BF6A ctermfg=179
87
+ highlight xmlEndTag guifg=#E8BF6A ctermfg=179
88
+
89
+ highlight mailSubject guifg=#A5C261 ctermfg=107
90
+ highlight mailHeaderKey guifg=#FFC66D ctermfg=221
91
+ highlight mailEmail guifg=#A5C261 ctermfg=107 gui=italic cterm=underline
92
+
93
+ highlight SpellBad guifg=#D70000 ctermfg=160 ctermbg=NONE cterm=underline
94
+ highlight SpellRare guifg=#D75F87 ctermfg=168 guibg=NONE ctermbg=NONE gui=underline cterm=underline
95
+ highlight SpellCap guifg=#D0D0FF ctermfg=189 guibg=NONE ctermbg=NONE gui=underline cterm=underline
96
+ highlight MatchParen guifg=#FFFFFF ctermfg=15 guibg=#005f5f ctermbg=23
97
+
98
+ " Added to standard railscasts theme
99
+ highlight Folded guibg=#4E4E4E guifg=#E6E1DC ctermbg=238 ctermfg=173
100
+ highlight FoldColumn guibg=#4E4E4E ctermbg=238
@@ -0,0 +1,74 @@
1
+ " local syntax file - set colors on a per-machine basis:
2
+ " vim: tw=0 ts=4 sw=4
3
+ " Vim color file
4
+ " Maintainer: John Long <vim@johnwlong.com>
5
+ " Last Change: 2005 July
6
+ " Based on blue.vim by Steven Vertigan <steven@vertigan.wattle.id.au>.
7
+
8
+ set background=dark
9
+ hi clear
10
+ if exists("syntax_on")
11
+ syntax reset
12
+ endif
13
+ let g:colors_name = "rubyblue"
14
+ hi Normal guifg=#C7D4E2 guibg=#162433
15
+ hi Normal ctermfg=lightGray ctermbg=black
16
+ hi NonText guifg=#4A6480 ctermfg=darkGray
17
+ hi comment guifg=#428BDD ctermfg=lightBlue
18
+ hi constant guifg=#00CC00 ctermfg=lightGreen
19
+ hi identifier guifg=white ctermfg=white
20
+ hi statement guifg=#F9BB00 gui=none ctermfg=yellow
21
+ hi preproc guifg=#F9BB00 ctermfg=yellow
22
+ hi type guifg=white ctermfg=white gui=underline
23
+ hi special guifg=#00CC00 ctermfg=lightGreen
24
+ hi Underlined guifg=#208AFF ctermfg=lightBlue
25
+ hi Underlined gui=underline cterm=underline
26
+
27
+ hi ErrorMsg guifg=#F9BB00 guibg=darkBlue
28
+ hi ErrorMsg ctermfg=black ctermbg=red
29
+ hi WarningMsg guifg=#428BDD guibg=darkBlue gui=bold
30
+ hi WarningMsg ctermfg=cyan
31
+ hi ModeMsg guifg=yellow gui=NONE
32
+ hi ModeMsg ctermfg=yellow
33
+ hi MoreMsg guifg=yellow gui=NONE
34
+ hi MoreMsg ctermfg=yellow
35
+ hi Error guifg=white guibg=red gui=underline
36
+ hi Error ctermfg=white ctermbg=red
37
+
38
+ hi Todo guifg=black guibg=yellow
39
+ hi Todo ctermfg=black ctermbg=yellow
40
+ hi Cursor guifg=black guibg=white
41
+ hi Cursor ctermfg=black ctermbg=white
42
+ hi Search guifg=black guibg=yellow
43
+ hi Search ctermfg=black ctermbg=yellow
44
+ hi IncSearch guifg=black guibg=yellow
45
+ hi IncSearch ctermfg=black ctermbg=yellow
46
+ hi LineNr guifg=pink ctermfg=lightMagenta
47
+ hi title guifg=white gui=bold cterm=bold
48
+
49
+ hi StatusLineNC gui=none guifg=#213449 guibg=#208AFF
50
+ hi StatusLineNC ctermfg=gray ctermbg=darkBlue
51
+ hi StatusLine gui=none guifg=white guibg=#208AFF
52
+ hi StatusLine ctermfg=white ctermbg=lightBlue
53
+
54
+ hi label guifg=yellow ctermfg=yellow
55
+ hi operator guifg=yellow gui=bold ctermfg=yellow
56
+ hi clear Visual
57
+ hi Visual term=reverse
58
+ hi Visual ctermfg=black ctermbg=yellow
59
+ hi Visual guifg=black guibg=#F9BB00
60
+
61
+ hi DiffChange guibg=darkGreen guifg=black
62
+ hi DiffChange ctermbg=darkGreen ctermfg=black
63
+ hi DiffText guibg=olivedrab guifg=black
64
+ hi DiffText ctermbg=lightGreen ctermfg=black
65
+ hi DiffAdd guibg=slateblue guifg=black
66
+ hi DiffAdd ctermbg=blue ctermfg=black
67
+ hi DiffDelete guibg=coral guifg=black
68
+ hi DiffDelete ctermbg=cyan ctermfg=black
69
+
70
+ hi Folded guibg=#CCCCCC guifg=#428BDD
71
+ hi Folded ctermbg=Blue ctermfg=white
72
+ hi FoldColumn guibg=gray30 guifg=black
73
+ hi FoldColumn ctermbg=gray ctermfg=black
74
+ hi cIf0 guifg=gray ctermfg=gray
@@ -0,0 +1,75 @@
1
+ " Maintainer: Yoshimasa NIWA<niw@disense.com>
2
+ " Last Change: 14 Jun 2006
3
+
4
+ set background=dark
5
+ hi clear
6
+ if exists("syntax_on")
7
+ syntax reset
8
+ endif
9
+
10
+ let g:colors_name="twilight"
11
+
12
+ hi Normal guifg=#F8F8F8 guibg=#141414
13
+ "hi Cursor guifg=#F8F8F8 guibg=#A0A0A0
14
+ hi Cursorline guibg=#222222
15
+ hi CursorIM guifg=#F8F8F8 guibg=#5F5A60
16
+ hi Directory guifg=#8F9D6A guibg=#141414
17
+ hi ErrorMsg guifg=#CF6A4C guibg=#420E09
18
+ hi VertSplit guifg=#AC885B guibg=#FFFFFF
19
+ hi Folded guifg=#F9EE98 guibg=#494949
20
+ hi IncSearch guifg=#000000 guibg=#CF6A4C
21
+ hi LineNr guifg=#7587A6 guibg=#000000
22
+ hi ModeMsg guifg=#CF7D34 guibg=#E9C062
23
+ hi MoreMsg guifg=#CF7D34 guibg=#E9C062
24
+ hi NonText guifg=#D2A8A1 guibg=#141414
25
+ hi Question guifg=#7587A6 guibg=#0E2231
26
+ hi Search guifg=#420E09 guibg=#CF6A4C
27
+ hi SpecialKey guifg=#CF7D34 guibg=#141414
28
+ hi StatusLine guifg=#0E2231 guibg=#8693A5
29
+ hi StatusLineNC guifg=#7587A6 guibg=#F8F8F8
30
+ hi Title guifg=#8B98AB guibg=#0E2231
31
+ hi Visual guifg=#0E2231 guibg=#AFC4DB
32
+ hi WarningMsg guifg=#CF6A4C guibg=#420E09
33
+ hi WildMenu guifg=#AFC4DB guibg=#0E2231
34
+
35
+ "Syntax hilight groups
36
+
37
+ hi Comment guifg=#8F9D6A
38
+ hi Constant guifg=#CF6A4C
39
+ hi String guifg=#8F9D6A
40
+ hi Character guifg=#E9C062
41
+ hi Number guifg=#9B859D
42
+ hi Boolean guifg=#CF6A4C
43
+ hi Float guifg=#562D56
44
+ hi Identifier guifg=#9B703F
45
+ hi Function guifg=#9B5C2E
46
+ hi Statement guifg=#CF7D34
47
+ hi Conditional guifg=#9B703F
48
+ hi Repeat guifg=khaki
49
+ hi Label guifg=#E9C062
50
+ hi Operator guifg=#CF6A4C
51
+ hi Keyword guifg=#E9C062
52
+ hi Exception guifg=khaki
53
+ hi PreProc guifg=khaki4
54
+ hi Include guifg=khaki4
55
+ hi Define guifg=khaki1
56
+ hi Macro guifg=#9B703F
57
+ hi PreCondit guifg=khaki3
58
+ hi Type guifg=khaki3
59
+ hi StorageClass guifg=tan
60
+ hi Structure guifg=DarkGoldenrod
61
+ hi Typedef guifg=khaki3
62
+ hi Special guifg=IndianRed
63
+ hi SpecialChar guifg=DarkGoldenrod
64
+ hi Tag guifg=DarkKhaki
65
+ hi Delimiter guifg=DarkGoldenrod
66
+ hi SpecialComment guifg=cornsilk
67
+ hi Debug guifg=brown
68
+ hi Underlined guifg=#Cf6A4C
69
+ hi Ignore guifg=#494949
70
+ hi Error guifg=#CF6A4C guibg=#420E09
71
+ hi Todo guifg=#7587A6 guibg=#0E2231
72
+ hi Pmenu guifg=#141414 guibg=#CDA869
73
+ hi PmenuSel guifg=#F8F8F8 guibg=#9B703F
74
+ hi PmenuSbar guibg=#DAEFA3
75
+ hi PmenuThumb guifg=#8F9D6A
@@ -0,0 +1,74 @@
1
+ " Maintainer: Yoshimasa NIWA<niw@disense.com>
2
+ " Last Change: 14 Jun 2006
3
+
4
+ set background=dark
5
+ hi clear
6
+ if exists("syntax_on")
7
+ syntax reset
8
+ endif
9
+
10
+ let g:colors_name="twilight"
11
+
12
+ hi Normal guifg=#F8F8F8 guibg=#141414
13
+ hi Cursor guifg=#F8F8F8 guibg=#A7A7A7
14
+ hi CursorIM guifg=#F8F8F8 guibg=#5F5A60
15
+ hi Directory guifg=#8F9D6A guibg=#141414
16
+ hi ErrorMsg guifg=#CF6A4C guibg=#420E09
17
+ hi VertSplit guifg=#AC885B guibg=#FFFFFF
18
+ hi Folded guifg=#F9EE98 guibg=#494949
19
+ hi IncSearch guifg=#000000 guibg=#CF6A4C
20
+ hi LineNr guifg=#7587A6 guibg=#000000
21
+ hi ModeMsg guifg=#CF7D34 guibg=#E9C062
22
+ hi MoreMsg guifg=#CF7D34 guibg=#E9C062
23
+ hi NonText guifg=#D2A8A1 guibg=#141414
24
+ hi Question guifg=#7587A6 guibg=#0E2231
25
+ hi Search guifg=#420E09 guibg=#CF6A4C
26
+ hi SpecialKey guifg=#CF7D34 guibg=#141414
27
+ hi StatusLine guifg=#0E2231 guibg=#8693A5
28
+ hi StatusLineNC guifg=#7587A6 guibg=#F8F8F8
29
+ hi Title guifg=#8B98AB guibg=#0E2231
30
+ hi Visual guifg=#0E2231 guibg=#AFC4DB
31
+ hi WarningMsg guifg=#CF6A4C guibg=#420E09
32
+ hi WildMenu guifg=#AFC4DB guibg=#0E2231
33
+
34
+ "Syntax hilight groups
35
+
36
+ hi Comment guifg=#8F9D6A
37
+ hi Constant guifg=#CF6A4C
38
+ hi String guifg=#ddf2a4
39
+ hi Character guifg=#E9C062
40
+ hi Number guifg=#9B859D
41
+ hi Boolean guifg=#CF6A4C
42
+ hi Float guifg=#562D56
43
+ hi Identifier guifg=#7587a6
44
+ hi Function guifg=#8F9D6A
45
+ hi Statement guifg=#CF7D34
46
+ hi Conditional guifg=#D2A8A1
47
+ hi Repeat guifg=khaki
48
+ hi Label guifg=#E9C062
49
+ hi Operator guifg=#CF6A4C
50
+ hi Keyword guifg=#E9C062
51
+ hi Exception guifg=khaki
52
+ hi PreProc guifg=khaki4
53
+ hi Include guifg=khaki4
54
+ hi Define guifg=khaki1
55
+ hi Macro guifg=#9B703F
56
+ hi PreCondit guifg=khaki3
57
+ hi Type guifg=khaki3
58
+ hi StorageClass guifg=tan
59
+ hi Structure guifg=DarkGoldenrod
60
+ hi Typedef guifg=khaki3
61
+ hi Special guifg=IndianRed
62
+ hi SpecialChar guifg=DarkGoldenrod
63
+ hi Tag guifg=DarkKhaki
64
+ hi Delimiter guifg=DarkGoldenrod
65
+ hi SpecialComment guifg=cornsilk
66
+ hi Debug guifg=brown
67
+ hi Underlined guifg=#Cf6A4C
68
+ hi Ignore guifg=#494949
69
+ hi Error guifg=#CF6A4C guibg=#420E09
70
+ hi Todo guifg=#7587A6 guibg=#0E2231
71
+ hi Pmenu guifg=#141414 guibg=#CDA869
72
+ hi PmenuSel guifg=#F8F8F8 guibg=#9B703F
73
+ hi PmenuSbar guibg=#DAEFA3
74
+ hi PmenuThumb guifg=#8F9D6A
@@ -0,0 +1,302 @@
1
+ " Vim color file
2
+ " Maintainer: David Liang (bmdavll at gmail dot com)
3
+ " Last Change: November 28 2008
4
+ "
5
+ " wombat256.vim - a modified version of Wombat by Lars Nielsen that also
6
+ " works on xterms with 88 or 256 colors. The algorithm for approximating the
7
+ " GUI colors with the xterm palette is from desert256.vim by Henry So Jr.
8
+
9
+ set background=dark
10
+
11
+ if version > 580
12
+ hi clear
13
+ if exists("syntax_on")
14
+ syntax reset
15
+ endif
16
+ endif
17
+
18
+ let g:colors_name = "wombat256"
19
+
20
+ if !has("gui_running") && &t_Co != 88 && &t_Co != 256
21
+ finish
22
+ endif
23
+
24
+ " functions {{{
25
+ " returns an approximate grey index for the given grey level
26
+ fun <SID>grey_number(x)
27
+ if &t_Co == 88
28
+ if a:x < 23
29
+ return 0
30
+ elseif a:x < 69
31
+ return 1
32
+ elseif a:x < 103
33
+ return 2
34
+ elseif a:x < 127
35
+ return 3
36
+ elseif a:x < 150
37
+ return 4
38
+ elseif a:x < 173
39
+ return 5
40
+ elseif a:x < 196
41
+ return 6
42
+ elseif a:x < 219
43
+ return 7
44
+ elseif a:x < 243
45
+ return 8
46
+ else
47
+ return 9
48
+ endif
49
+ else
50
+ if a:x < 14
51
+ return 0
52
+ else
53
+ let l:n = (a:x - 8) / 10
54
+ let l:m = (a:x - 8) % 10
55
+ if l:m < 5
56
+ return l:n
57
+ else
58
+ return l:n + 1
59
+ endif
60
+ endif
61
+ endif
62
+ endfun
63
+
64
+ " returns the actual grey level represented by the grey index
65
+ fun <SID>grey_level(n)
66
+ if &t_Co == 88
67
+ if a:n == 0
68
+ return 0
69
+ elseif a:n == 1
70
+ return 46
71
+ elseif a:n == 2
72
+ return 92
73
+ elseif a:n == 3
74
+ return 115
75
+ elseif a:n == 4
76
+ return 139
77
+ elseif a:n == 5
78
+ return 162
79
+ elseif a:n == 6
80
+ return 185
81
+ elseif a:n == 7
82
+ return 208
83
+ elseif a:n == 8
84
+ return 231
85
+ else
86
+ return 255
87
+ endif
88
+ else
89
+ if a:n == 0
90
+ return 0
91
+ else
92
+ return 8 + (a:n * 10)
93
+ endif
94
+ endif
95
+ endfun
96
+
97
+ " returns the palette index for the given grey index
98
+ fun <SID>grey_color(n)
99
+ if &t_Co == 88
100
+ if a:n == 0
101
+ return 16
102
+ elseif a:n == 9
103
+ return 79
104
+ else
105
+ return 79 + a:n
106
+ endif
107
+ else
108
+ if a:n == 0
109
+ return 16
110
+ elseif a:n == 25
111
+ return 231
112
+ else
113
+ return 231 + a:n
114
+ endif
115
+ endif
116
+ endfun
117
+
118
+ " returns an approximate color index for the given color level
119
+ fun <SID>rgb_number(x)
120
+ if &t_Co == 88
121
+ if a:x < 69
122
+ return 0
123
+ elseif a:x < 172
124
+ return 1
125
+ elseif a:x < 230
126
+ return 2
127
+ else
128
+ return 3
129
+ endif
130
+ else
131
+ if a:x < 75
132
+ return 0
133
+ else
134
+ let l:n = (a:x - 55) / 40
135
+ let l:m = (a:x - 55) % 40
136
+ if l:m < 20
137
+ return l:n
138
+ else
139
+ return l:n + 1
140
+ endif
141
+ endif
142
+ endif
143
+ endfun
144
+
145
+ " returns the actual color level for the given color index
146
+ fun <SID>rgb_level(n)
147
+ if &t_Co == 88
148
+ if a:n == 0
149
+ return 0
150
+ elseif a:n == 1
151
+ return 139
152
+ elseif a:n == 2
153
+ return 205
154
+ else
155
+ return 255
156
+ endif
157
+ else
158
+ if a:n == 0
159
+ return 0
160
+ else
161
+ return 55 + (a:n * 40)
162
+ endif
163
+ endif
164
+ endfun
165
+
166
+ " returns the palette index for the given R/G/B color indices
167
+ fun <SID>rgb_color(x, y, z)
168
+ if &t_Co == 88
169
+ return 16 + (a:x * 16) + (a:y * 4) + a:z
170
+ else
171
+ return 16 + (a:x * 36) + (a:y * 6) + a:z
172
+ endif
173
+ endfun
174
+
175
+ " returns the palette index to approximate the given R/G/B color levels
176
+ fun <SID>color(r, g, b)
177
+ " get the closest grey
178
+ let l:gx = <SID>grey_number(a:r)
179
+ let l:gy = <SID>grey_number(a:g)
180
+ let l:gz = <SID>grey_number(a:b)
181
+
182
+ " get the closest color
183
+ let l:x = <SID>rgb_number(a:r)
184
+ let l:y = <SID>rgb_number(a:g)
185
+ let l:z = <SID>rgb_number(a:b)
186
+
187
+ if l:gx == l:gy && l:gy == l:gz
188
+ " there are two possibilities
189
+ let l:dgr = <SID>grey_level(l:gx) - a:r
190
+ let l:dgg = <SID>grey_level(l:gy) - a:g
191
+ let l:dgb = <SID>grey_level(l:gz) - a:b
192
+ let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
193
+ let l:dr = <SID>rgb_level(l:gx) - a:r
194
+ let l:dg = <SID>rgb_level(l:gy) - a:g
195
+ let l:db = <SID>rgb_level(l:gz) - a:b
196
+ let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
197
+ if l:dgrey < l:drgb
198
+ " use the grey
199
+ return <SID>grey_color(l:gx)
200
+ else
201
+ " use the color
202
+ return <SID>rgb_color(l:x, l:y, l:z)
203
+ endif
204
+ else
205
+ " only one possibility
206
+ return <SID>rgb_color(l:x, l:y, l:z)
207
+ endif
208
+ endfun
209
+
210
+ " returns the palette index to approximate the 'rrggbb' hex string
211
+ fun <SID>rgb(rgb)
212
+ let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0
213
+ let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0
214
+ let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0
215
+ return <SID>color(l:r, l:g, l:b)
216
+ endfun
217
+
218
+ " sets the highlighting for the given group
219
+ fun <SID>X(group, fg, bg, attr)
220
+ if a:fg != ""
221
+ exec "hi ".a:group." guifg=#".a:fg." ctermfg=".<SID>rgb(a:fg)
222
+ endif
223
+ if a:bg != ""
224
+ exec "hi ".a:group." guibg=#".a:bg." ctermbg=".<SID>rgb(a:bg)
225
+ endif
226
+ if a:attr != ""
227
+ if a:attr == 'italic'
228
+ exec "hi ".a:group." gui=".a:attr." cterm=none"
229
+ else
230
+ exec "hi ".a:group." gui=".a:attr." cterm=".a:attr
231
+ endif
232
+ endif
233
+ endfun
234
+ " }}}
235
+
236
+ call <SID>X("Normal", "cccccc", "242424", "none")
237
+ call <SID>X("Cursor", "222222", "ecee90", "none")
238
+ call <SID>X("CursorLine", "", "32322e", "none")
239
+ call <SID>X("CursorColumn", "", "2d2d2d", "")
240
+ "CursorIM
241
+ "Question
242
+ "IncSearch
243
+ call <SID>X("Search", "444444", "af87d7", "")
244
+ call <SID>X("MatchParen", "ecee90", "857b6f", "bold")
245
+ call <SID>X("SpecialKey", "6c6c6c", "2d2d2d", "none")
246
+ call <SID>X("Visual", "ecee90", "597418", "none")
247
+ call <SID>X("LineNr", "857b6f", "121212", "none")
248
+ call <SID>X("Folded", "a0a8b0", "404048", "none")
249
+ call <SID>X("Title", "f6f3e8", "", "bold")
250
+ call <SID>X("VertSplit", "444444", "444444", "none")
251
+ call <SID>X("StatusLine", "f6f3e8", "444444", "italic")
252
+ call <SID>X("StatusLineNC", "857b6f", "444444", "none")
253
+ "Scrollbar
254
+ "Tooltip
255
+ "Menu
256
+ "WildMenu
257
+ call <SID>X("Pmenu", "f6f3e8", "444444", "")
258
+ call <SID>X("PmenuSel", "121212", "caeb82", "")
259
+ call <SID>X("WarningMsg", "ff0000", "", "")
260
+ "ErrorMsg
261
+ "ModeMsg
262
+ "MoreMsg
263
+ "Directory
264
+ "DiffAdd
265
+ "DiffChange
266
+ "DiffDelete
267
+ "DiffText
268
+
269
+ " syntax highlighting
270
+ call <SID>X("Number", "e5786d", "", "none")
271
+ call <SID>X("Constant", "e5786d", "", "none")
272
+ call <SID>X("String", "95e454", "", "italic")
273
+ call <SID>X("Comment", "c0bc6c", "", "italic")
274
+ call <SID>X("Identifier", "caeb82", "", "none")
275
+ call <SID>X("Keyword", "87afff", "", "none")
276
+ call <SID>X("Statement", "87afff", "", "none")
277
+ call <SID>X("Function", "caeb82", "", "none")
278
+ call <SID>X("PreProc", "e5786d", "", "none")
279
+ call <SID>X("Type", "caeb82", "", "none")
280
+ call <SID>X("Special", "ffdead", "", "none")
281
+ call <SID>X("Todo", "857b6f", "", "italic")
282
+ "Underlined
283
+ "Error
284
+ "Ignore
285
+
286
+ hi! link VisualNOS Visual
287
+ hi! link NonText LineNr
288
+ hi! link FoldColumn Folded
289
+
290
+ " delete functions {{{
291
+ delf <SID>X
292
+ delf <SID>rgb
293
+ delf <SID>color
294
+ delf <SID>rgb_color
295
+ delf <SID>rgb_level
296
+ delf <SID>rgb_number
297
+ delf <SID>grey_color
298
+ delf <SID>grey_level
299
+ delf <SID>grey_number
300
+ " }}}
301
+
302
+ " vim:set ts=4 sw=4 noet fdm=marker: