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 0781a7ad24f3bdc10a5c2286ceabda15b7ef9321
parent 77017c54b0b611f0ba8f8825f125b716e65c84b9
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Mon, 18 Oct 2021 17:06:30 -0400

Add LICENSE

Diffstat:
ALICENSE | 18++++++++++++++++++
MREADME.md | 27++++++++-------------------
Mcolors/monochrome.vim | 52+++++++++++++++++++++++++---------------------------
Mimg/vim-monochrome.png | 0
4 files changed, 51 insertions(+), 46 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -0,0 +1,18 @@ +Copyright © Refer to https://github.com/fxn/vim-monochrome/graphs/contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the “Software”), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md @@ -8,31 +8,20 @@ <img alt="Monochrome Vim color scheme" src="img/vim-monochrome.png"/> </p> -The status line in the screenshot is -[lightline.vim](https://github.com/itchyny/lightline.vim) with the `nord` color -scheme, which is a great match. - ### Installation -Installation depends on how you manage packages. For example, with -[vim-plug](https://github.com/junegunn/vim-plug) add - -``` -Plug 'fxn/vim-monochrome' -``` +Install as you would any other vim package. For example, using Vim's built-in +plugin management you can place the vim-monochrome directory at +`~/.vim/pack/bundle/start/vim-monochrome`. to your init file. ### Configuration -Just throw this to your _~/.vimrc_: - - colorscheme monochrome +Just throw this to your `vimrc` or `init.vim`: -Comments can optionally be rendered using italics: - - let g:monochrome_italic_comments = 1 - colorscheme monochrome - -It is important that the flag is set before loading the theme. +``` +colorscheme monochrome +``` +Comments are rendered using italic. diff --git a/colors/monochrome.vim b/colors/monochrome.vim @@ -3,6 +3,7 @@ " Name: monochrome.vim " Maintainer: Xavier Noria <fxn@hashref.com> " License: MIT +" Modified by: Jake Bauer <jbauer@paritybit.ca> set background=dark @@ -19,8 +20,7 @@ let s:bgray = ['#181818', 233] let s:lgray = ['LightGray', 255] let s:cgray = ['#737373', 243] let s:dgray = ['DarkGray', 248] -let s:sblue = ['#778899', 67] -let s:yellow = ['Yellow', 226] +let s:mpurp = ['#8C7799', 97] let s:red = ['#b6403a', 160] let s:green = ['#478226', 28] @@ -35,10 +35,7 @@ let s:none = 'NONE' let s:default_lst = [] let s:default_str = '' -if !exists("g:monochrome_italic_comments") - let g:monochrome_italic_comments = 0 -endif -let s:comment_attr = g:monochrome_italic_comments ? s:italic : s:none +let s:comment_attr = s:italic function! s:hi(...) let group = a:1 @@ -75,9 +72,9 @@ call s:hi('Normal') call s:hi('Cursor', s:black, s:lgray) call s:hi('CursorLine', s:default_lst, s:bgray, s:none) call s:hi('CursorLineNr', s:white, s:default_bg, s:bold) -call s:hi('ColorColumn', s:default_fg, s:bgray) -call s:hi('Search', s:white, s:sblue) -call s:hi('Visual', s:white, s:sblue) +call s:hi('ColorColumn', [], s:bgray) +call s:hi('Search', s:white, s:mpurp) +call s:hi('Visual', s:white, s:mpurp) call s:hi('ErrorMsg', s:white, s:red) " Tildes at the bottom of a buffer, etc. @@ -91,22 +88,22 @@ call s:hi('Folded') call s:hi('LineNr', s:dgray) " Small arrow used for tabs. -call s:hi('SpecialKey', s:sblue, s:default_bg, s:bold) +call s:hi('SpecialKey', s:mpurp, s:default_bg, s:bold) " File browsers. call s:hi('Directory', s:white, s:default_bg, s:bold) " Help. call s:hi('helpSpecial') -call s:hi('helpHyperTextJump', s:sblue, s:default_bg, s:underline) +call s:hi('helpHyperTextJump', s:mpurp, s:default_bg, s:underline) call s:hi('helpNote') " Popup menu. -call s:hi('Pmenu', s:white, s:sblue) -call s:hi('PmenuSel', s:sblue, s:white) +call s:hi('Pmenu', s:white, s:mpurp) +call s:hi('PmenuSel', s:mpurp, s:white) " Notes. -call s:hi('Todo', s:black, s:yellow, s:bold) +call s:hi('Todo', s:lgray, s:mpurp, s:bold) " Signs. call s:hi('SignColumn') @@ -117,9 +114,10 @@ call s:hi('SignColumn') call s:hi('Statement', s:white, s:default_bg, s:bold) call s:hi('PreProc', s:white, s:default_bg, s:bold) -call s:hi('String', s:sblue) +call s:hi('String', s:mpurp) call s:hi('Comment', s:cgray, s:default_bg, s:comment_attr) -call s:hi('Constant') +call s:hi('Constant', s:mpurp, s:default_bg, s:bold) +call s:hi('Number', s:mpurp) call s:hi('Type', s:white, s:default_bg, s:bold) call s:hi('Function', s:white) call s:hi('Identifier') @@ -150,11 +148,11 @@ hi link vimCommentTitle Comment call s:hi('rubyConstant') call s:hi('rubySharpBang', s:cgray) -call s:hi('rubyStringDelimiter', s:sblue) -call s:hi('rubyStringEscape', s:sblue) -call s:hi('rubyRegexpEscape', s:sblue) -call s:hi('rubyRegexpAnchor', s:sblue) -call s:hi('rubyRegexpSpecial', s:sblue) +call s:hi('rubyStringDelimiter', s:mpurp) +call s:hi('rubyStringEscape', s:mpurp) +call s:hi('rubyRegexpEscape', s:mpurp) +call s:hi('rubyRegexpAnchor', s:mpurp) +call s:hi('rubyRegexpSpecial', s:mpurp) " @@ -162,7 +160,7 @@ call s:hi('rubyRegexpSpecial', s:sblue) " call s:hi('elixirAlias', s:default_fg, s:default_bg, s:none) -call s:hi('elixirDelimiter', s:sblue) +call s:hi('elixirDelimiter', s:mpurp) call s:hi('elixirSelf', s:default_fg, s:default_bg, s:none) " For ||, ->, etc. @@ -183,16 +181,16 @@ hi link elixirStringDelimiter String " call s:hi('perlSharpBang', s:cgray) -call s:hi('perlStringStartEnd', s:sblue) -call s:hi('perlStringEscape', s:sblue) -call s:hi('perlMatchStartEnd', s:sblue) +call s:hi('perlStringStartEnd', s:mpurp) +call s:hi('perlStringEscape', s:mpurp) +call s:hi('perlMatchStartEnd', s:mpurp) " " --- Python ------------------------------------------------------------------- " -call s:hi('pythonEscape', s:sblue) +call s:hi('pythonEscape', s:mpurp) " @@ -222,7 +220,7 @@ call s:hi('diffRemoved', s:white, s:red) call s:hi('Title', s:white, s:default_bg, s:bold) call s:hi('markdownHeadingDelimiter', s:white, s:default_bg, s:bold) call s:hi('markdownHeadingRule', s:white, s:default_bg, s:bold) -call s:hi('markdownLinkText', s:sblue, s:default_bg, s:underline) +call s:hi('markdownLinkText', s:mpurp, s:default_bg, s:underline) " diff --git a/img/vim-monochrome.png b/img/vim-monochrome.png Binary files differ.