commit 5318b0d6b808f98b28d7e0558642b9582e8134f0
parent 2876b9d63b43722c8c8dec2521ea57310aed00b9
Author: Jake Bauer <jbauer@paritybit.ca>
Date: Mon, 18 Oct 2021 05:31:32 -0400
Customize vim-monochrome
Diffstat:
2 files changed, 25 insertions(+), 56 deletions(-)
diff --git a/.vim/pack/bundle/start/vim-monochrome/colors/monochrome.vim b/.vim/pack/bundle/start/vim-monochrome/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
@@ -76,8 +73,8 @@ 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('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,13 +114,14 @@ 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')
-call s:hi('Special')
+call s:hi('Special', s:mpurp)
call s:hi('MatchParen', s:lgray, s:black, s:underline)
@@ -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,32 +220,4 @@ 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)
-
-
-"
-" --- vim-fugitive -------------------------------------------------------------
-"
-
-call s:hi('gitcommitComment', s:default_fg, s:default_bg, s:none)
-call s:hi('gitcommitOnBranch', s:default_fg, s:default_bg, s:none)
-call s:hi('gitcommitBranch', s:sblue, s:default_bg, s:none)
-call s:hi('gitcommitHeader', s:white, s:default_bg, s:bold)
-call s:hi('gitcommitSelected', s:default_fg, s:default_bg, s:none)
-call s:hi('gitcommitDiscarded', s:default_fg, s:default_bg, s:none)
-call s:hi('gitcommitSelectedType', s:default_fg, s:default_bg, s:none)
-call s:hi('gitcommitDiscardedType', s:default_fg, s:default_bg, s:none)
-
-
-"
-" --- NeoMake ------------------------------------------------------------------
-"
-
-call s:hi('NeomakeMessageSign')
-call s:hi('NeomakeWarningSign', s:sblue)
-call s:hi('NeomakeErrorSign', s:yellow)
-call s:hi('NeomakeInfoSign')
-call s:hi('NeomakeError', s:yellow)
-call s:hi('NeomakeInfo', s:default_fg, s:default_bg, s:bold)
-call s:hi('NeomakeMessage')
-call s:hi('NeomakeWarning', s:yellow)
+call s:hi('markdownLinkText', s:mpurp, s:default_bg, s:underline)
diff --git a/.vim/vimrc b/.vim/vimrc
@@ -11,7 +11,6 @@ let mapleader = ","
" General Settings {{{
" Syntax Highlighting and Colours
syntax on
-let g:monochrome_italic_comments=1
colorscheme monochrome
" Show Matching Parens/Brackets