Permalink
Browse files

Version 1.2: High contrast option included.

  • Loading branch information...
1 parent 24adbab commit 7d30079e631953f935b5359ef242bc4c9dca0cd4 @carsonfire carsonfire committed with May 23, 2012
Showing with 53 additions and 10 deletions.
  1. +7 −4 README
  2. +46 −6 colors/festoon.vim
View
11 README
@@ -1,12 +1,13 @@
This is a mirror of http://www.vim.org/scripts/script.php?script_id=3852
-Designed to work equally well with background set to dark or light. No vimrc configuration necessary.
+It's Christmas for your code and creative writing! Festoon's light background is a bisque, while the dark background is toasty dark brown. The color palette is large and festive, but the hues are restrained. Terminal use is not supported. Contrast is moderate, keeping in mind hours of staring at code and text documents, although high contrast is an option.
-Includes a simple function BgToggle() which can be mapped for extremely fast background switching.
+Festoon is designed to work equally well with background set to dark or light. No vimrc configuration necessary: simply set the background to dark or light, in vimrc or on the fly. The colorscheme includes a simple function BgToggle() which can be mapped for extremely fast background switching. A high contrast mode is also available, best accessed with the FestConToggle() function, providing a stark black or white background. Sample mapping:
-The light background is a bisque, while the dark background is very dark, but not black. The color palette is colorful, but the hues are restrained. Terminal use is not supported.
+ noremap <f2> <esc>:call BgToggle()<cr>
+ noremap <c-f2> <esc>:call FestConToggle()<cr>
-The goal of this colorscheme is to create an artistic and functional Vim environment, to make Vim documents as colorful as possible while avoiding overbearing candy colors, and arranging the colors in a logical way so that they are actually useful in providing visual clues about the document.
+A balance has been struck between an attractive layout and functionality: critical content and strings come to the front, while markup and lesser elements recede. Link text is vibrant. Header levels are actually visually differentiated in a logical way. HTML documents can be easily read and managed. Use the following page to compare Festoon to some other colorschemes, including Solarized and some older Vim favorites: http://www.elflife.net/vim/vimcolors.html
Extraneous formatting (bold, italics, and underlined text) is avoided, except for where this formatting is explicitly called for (and the following exceptions).
@@ -25,3 +26,5 @@ Screenshots:
* Light http://elflife.net/vim/FestoonLight.png
* Dark http://elflife.net/vim/FestoonDark.png
+I have not tested this colorscheme in any Vim save the current version, 7.3. Please feel free to provide feedback.
+
View
@@ -1,12 +1,24 @@
" Name: festoon.vim
" Maintainer: Carson Fire <carsonfire@gmail.com>
-" Last Change: 2012-05-17
+" Last Change: 2012-05-23
+" Version: 1.2: High contrast option added
" Version: 1.1: More colors, better support for dark version
" Version: 1.0: Initial upload (2011-12-20)
" Festoon is a dark and a light colorscheme in one. No special setup
" required, just set the background to dark or light, as desired.
+" Two functions are included to make switching backgrounds quick 'n easy.
+" Sample mapping:
+"
+" noremap <f2> <esc>:call BgToggle()<cr>
+" noremap <c-f2> <esc>:call ContrastToggle()<cr>
+
+
+if !exists("FestoonContrast")
+let g:FestoonContrast = "normal"
+endif
+
if exists("syntax_on")
exe 'hi clear'
syntax reset
@@ -64,7 +76,11 @@ let s:BrownGrad2 = '#a27a62'
let s:BrownGrad3 = '#d09d7e'
if &background == "dark"
- let s:Bg = s:BlackBisque
+ if g:FestoonContrast == "high"
+ let s:Bg = s:Black
+ else
+ let s:Bg = s:BlackBisque
+ endif
let s:BgHi = s:AlmostBlack2
let s:BgVyHi = s:Black
let s:Fg = s:LtGrayMarble
@@ -109,7 +125,11 @@ if &background == "dark"
let s:Grad11 = s:RedGrad2
let s:Grad12 = s:RedGrad1
else
- let s:Bg = s:Bisque1
+ if g:FestoonContrast == "high"
+ let s:Bg = s:White
+ else
+ let s:Bg = s:Bisque1
+ endif
let s:BgHi = s:Bisque0
let s:BgVyHi = s:White
let s:Fg = s:DkGray
@@ -410,6 +430,19 @@ exe 'hi link textDialogue Tag'
exe 'hi link textAction Special'
exe 'hi link textLineEnd Comment'
exe 'hi link textKoppa String'
+exe 'hi textBoldUnderline gui=bold,underline'
+exe 'hi textBoldItalic gui=bold,italic'
+exe 'hi textBold gui=bold'
+exe 'hi textBoldUnderlineItalic gui=bold,underline,italic'
+exe 'hi link textBoldItalicUnderline textBoldUnderlineItalic '
+exe 'hi link textUnderlineBold textBoldUnderline'
+exe 'hi textUnderlineItalic gui=underline,italic'
+exe 'hi textUnderline gui=underline'
+exe 'hi link textUnderlineBoldItalic textBoldUnderlineItalic'
+exe 'hi link textUnderlineItalicBold textBoldUnderlineItalic'
+exe 'hi link textItalicBold textBoldItalic'
+exe 'hi link textItalicUnderline textUnderlineItalic'
+exe 'hi textItalic gui=italic'
if !exists("*BgToggle")
function BgToggle()
if &background == "light"
@@ -419,6 +452,13 @@ if !exists("*BgToggle")
endif
endfunction
endif
-
-
-
+if !exists("*FestConToggle")
+ function FestConToggle()
+ if g:FestoonContrast == "high"
+ let g:FestoonContrast = "normal"
+ else
+ let g:FestoonContrast = "high"
+ endif
+ colo festoon
+ endfunction
+endif

0 comments on commit 7d30079

Please sign in to comment.