vim-monochrome

My fork of github.com/fxn/vim-monochrome
git clone https://git.sr.ht/~jbauer/vim-monochrome
Log | Files | Refs | README | LICENSE

commit c1c00a287dd3412099e95a9021b1ad33cd8dd14f
Author: Xavier Noria <fxn@hashref.com>
Date:   Tue, 31 Dec 2013 17:39:06 +0100

initial draft

Diffstat:
AREADME.md | 19+++++++++++++++++++
Abin/generate.rb | 158+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Acolors/monochrome.vim | 65+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ascreenshot.jpg | 0
4 files changed, 242 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -0,0 +1,18 @@ +# monochrome - A dark Vim color scheme for your focused hacking sessions + +## Installation + + cd ~/.vim/bundle + git clone https://github.com/fxn/vim-monochrome.git + +## Configuration + +This color scheme works in GUIs and 256 color terminals, throw this to your +_~/.vimrc_: + + syntax on + colorscheme monochrome + +## Screenshot + +![Monochrome Color Scheme for Vim](http://github.com/fxn/vim-monochrome/raw/master/screenshot.jpg) +\ No newline at end of file diff --git a/bin/generate.rb b/bin/generate.rb @@ -0,0 +1,158 @@ +#!/usr/bin/env ruby + +# Mapping guidelines: +# +# http://raebear.net/comp/emacscolors.html +# http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html +# + +def white + { gui: 'White', cterm: 15 } +end + +def black + { gui: 'Black', cterm: 16 } +end + +def bgray + { gui: '#202020', cterm: 234 } +end + +def lgray + { gui: 'LightGray', cterm: 252 } +end + +def cgray + { gui: '#737373', cterm: 243 } +end + +def dgray + { gui: 'DarkGray', cterm: 248 } +end + +def sblue + { gui: '#778899', cterm: 24 } +end + +def hi(group, options={}) + tokens = [] + tokens << 'hi' + tokens << group.to_s + + fg = options.delete(:fg) {|_| lgray } + tokens << "guifg=#{fg[:gui]}" + tokens << "ctermfg=#{fg[:cterm]}" + + bg = options.delete(:bg) {|_| black } + tokens << "guibg=#{bg[:gui]}" + tokens << "ctermbg=#{bg[:cterm]}" + + rest = options.keys.join(',') + if rest.empty? + tokens << "gui=NONE" + tokens << "cterm=NONE" + tokens << "term=NONE" + else + tokens << "gui=#{rest}" + tokens << "cterm=#{rest}" + tokens << "term=#{rest}" + end + + puts tokens.join(' ') +end + +puts <<-EOS +" Vim color scheme +" +" This file is generated, please check bin/generate.rb. +" +" Name: monochrome.vim +" Maintainer: Xavier Noria <fxn@hashref.com> +" License: MIT + +set background=dark + +hi clear +if exists('syntax_on') + syntax reset +endif + +let g:colors_name = 'monochrome' + +EOS + +# Basic colors. +hi :Normal +hi :Cursor, fg: black, bg: lgray + +# Cursor line. +hi :CursorLine, bg: bgray + +# Main groups for programming langages. +hi :Statement, fg: white, bold: true +hi :PreProc, fg: white, bold: true +hi :String, fg: sblue +hi :Comment, fg: cgray +hi :Constant +hi :Type +hi :Function, fg: white +hi :Identifier +hi :Special +hi :MatchParen, fg: black, bg: lgray + +# Ruby tweaks. +hi :rubySharpBang, fg: cgray +hi :rubyStringDelimiter, fg: sblue +hi :rubyStringEscape, fg: sblue +hi :rubyRegexpEscape, fg: sblue +hi :rubyRegexpAnchor, fg: sblue +hi :rubyRegexpSpecial, fg: sblue + +# Perl tweaks. +hi :perlSharpBang, fg: cgray +hi :perlStringStartEnd, fg: sblue +hi :perlStringEscape, fg: sblue +hi :perlMatchStartEnd, fg: sblue + +# Python tweaks. +hi :pythonEscape, fg: sblue + +# Line numbers gutter. +hi :LineNr, fg: dgray +hi :CursorLineNr, fg: white, bold: true + +# Search. +hi :Search, fg: black, bg: lgray +hi :Visual, fg: black, bg: lgray + +# Tildes at the bottom of a buffer, etc. +hi :NonText, fg: dgray + +# File browsers. +hi :Directory, fg: white, bold: true + +# Markup. +hi :Title, fg: white, bold: true +hi :markdownHeadingDelimiter, fg: white, bold: true +hi :markdownHeadingRule, fg: white, bold: true +hi :markdownLinkText, fg: sblue, underline: true + +# Notes +hi :Todo, fg: white, bg: sblue, bold: true + +# Help. +hi :helpSpecial +hi :helpHyperTextJump, fg: sblue, underline: true + +# Vim script. +hi :vimOption +hi :vimGroup +hi :vimHiClear +hi :vimHiGroup +hi :vimHiAttrib +hi :vimHiGui +hi :vimHiGuiFgBg +hi :vimHiCTerm +hi :vimHiCTermFgBg +hi :vimSynType +hi :vimCommentTitle, fg: cgray diff --git a/colors/monochrome.vim b/colors/monochrome.vim @@ -0,0 +1,65 @@ +" Vim color scheme +" +" This file is generated, please check bin/generate.rb. +" +" Name: monochrome.vim +" Maintainer: Xavier Noria <fxn@hashref.com> +" License: MIT + +set background=dark + +hi clear +if exists('syntax_on') + syntax reset +endif + +let g:colors_name = 'monochrome' + +hi Normal guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi Cursor guifg=Black ctermfg=16 guibg=LightGray ctermbg=252 gui=NONE cterm=NONE term=NONE +hi CursorLine guifg=LightGray ctermfg=252 guibg=#202020 ctermbg=234 gui=NONE cterm=NONE term=NONE +hi Statement guifg=White ctermfg=15 guibg=Black ctermbg=16 gui=bold cterm=bold term=bold +hi PreProc guifg=White ctermfg=15 guibg=Black ctermbg=16 gui=bold cterm=bold term=bold +hi String guifg=#778899 ctermfg=24 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi Comment guifg=#737373 ctermfg=243 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi Constant guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi Type guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi Function guifg=White ctermfg=15 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi Identifier guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi Special guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi MatchParen guifg=Black ctermfg=16 guibg=LightGray ctermbg=252 gui=NONE cterm=NONE term=NONE +hi rubySharpBang guifg=#737373 ctermfg=243 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi rubyStringDelimiter guifg=#778899 ctermfg=24 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi rubyStringEscape guifg=#778899 ctermfg=24 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi rubyRegexpEscape guifg=#778899 ctermfg=24 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi rubyRegexpAnchor guifg=#778899 ctermfg=24 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi rubyRegexpSpecial guifg=#778899 ctermfg=24 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi perlSharpBang guifg=#737373 ctermfg=243 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi perlStringStartEnd guifg=#778899 ctermfg=24 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi perlStringEscape guifg=#778899 ctermfg=24 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi perlMatchStartEnd guifg=#778899 ctermfg=24 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi pythonEscape guifg=#778899 ctermfg=24 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi LineNr guifg=DarkGray ctermfg=248 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi CursorLineNr guifg=White ctermfg=15 guibg=Black ctermbg=16 gui=bold cterm=bold term=bold +hi Search guifg=Black ctermfg=16 guibg=LightGray ctermbg=252 gui=NONE cterm=NONE term=NONE +hi Visual guifg=Black ctermfg=16 guibg=LightGray ctermbg=252 gui=NONE cterm=NONE term=NONE +hi NonText guifg=DarkGray ctermfg=248 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi Directory guifg=White ctermfg=15 guibg=Black ctermbg=16 gui=bold cterm=bold term=bold +hi Title guifg=White ctermfg=15 guibg=Black ctermbg=16 gui=bold cterm=bold term=bold +hi markdownHeadingDelimiter guifg=White ctermfg=15 guibg=Black ctermbg=16 gui=bold cterm=bold term=bold +hi markdownHeadingRule guifg=White ctermfg=15 guibg=Black ctermbg=16 gui=bold cterm=bold term=bold +hi markdownLinkText guifg=#778899 ctermfg=24 guibg=Black ctermbg=16 gui=underline cterm=underline term=underline +hi Todo guifg=White ctermfg=15 guibg=#778899 ctermbg=24 gui=bold cterm=bold term=bold +hi helpSpecial guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi helpHyperTextJump guifg=#778899 ctermfg=24 guibg=Black ctermbg=16 gui=underline cterm=underline term=underline +hi vimOption guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi vimGroup guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi vimHiClear guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi vimHiGroup guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi vimHiAttrib guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi vimHiGui guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi vimHiGuiFgBg guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi vimHiCTerm guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi vimHiCTermFgBg guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi vimSynType guifg=LightGray ctermfg=252 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE +hi vimCommentTitle guifg=#737373 ctermfg=243 guibg=Black ctermbg=16 gui=NONE cterm=NONE term=NONE diff --git a/screenshot.jpg b/screenshot.jpg Binary files differ.