Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename files or change g:colors_name to match filenames #158

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions checkfile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#! /bin/bash
for filename in ./*.vim; do
realname=${filename:2:-4}
assigned=`cat "$filename" | pcregrep -o2 "let[[:space:]]*(g:)*colors_name[[:space:]]*=[[:space:]]*['\"]([a-zA-Z0-9]+)['\"]"`
# echo "$assigned"
if [[ $realname != $assigned ]]; then
echo $filename
fi
done
File renamed without changes.
2 changes: 1 addition & 1 deletion colors/Blue2.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
" It's based on:
runtime colors/Dark.vim

let g:colors_name = "Blue"
let g:colors_name = "Blue2"

" hi Normal guibg=#000070 guifg=GhostWhite
hi Normal guibg=#000050 guifg=GhostWhite
Expand Down
8 changes: 4 additions & 4 deletions colors/CandyPaper.vim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if exists("syntax_on")
syntax reset
endif

let colors_name = "CandyCode"
let colors_name = "CandyPaper"

" Convert color from HSV to RGB as a hex string
" See: https://en.wikipedia.org/wiki/HSL_and_HSV#From_HSV
Expand Down Expand Up @@ -154,7 +154,7 @@ function s:attr(group, attr) "{
exec "highlight " . a:group . " gui=" . a:attr . " cterm=" . a:attr
endfunction "}

" Basic Highlighting Groups:
" Basic Highlighting Groups:
" {
call s:fg("SpecialKey", 60, 60, 75)
call s:fg("NonText", 120, 15, 45) | call s:attr("NonText", "none")
Expand All @@ -169,7 +169,7 @@ endfunction "}
call s:fg("CursorLineNr", 120, 15, 60) | call s:attr("CursorLineNr", "none")
call s:fg("Question", 120, 45, 75) | call s:attr("Question", "none")
call s:fg("StatusLine", 0, 0, 15) | call s:bg("StatusLine", 120, 15, 75) | call s:attr("StatusLine", "none")
call s:fg("StatusLineNC", 120, 15, 30) | call s:bg("StatusLineNC", 120, 15, 75) | call s:attr("StatusLine", "none")
call s:fg("StatusLineNC", 120, 15, 30) | call s:bg("StatusLineNC", 120, 15, 75) | call s:attr("StatusLine", "none")
call s:fg("Title", 120, 45, 75) | call s:attr("Title", "none")
call s:bg("Visual", 210, 60, 30)
call s:bg("VisualNOS", 210, 60, 30) | call s:attr("VisualNOS", "underline")
Expand Down Expand Up @@ -267,7 +267,7 @@ endfunction "}
call s:fg("javascript", 120, 15, 75)
" }

" Delete Functions:
" Delete Functions:
" {
delfunction s:hsv_to_rgb
delfunction s:grey_index
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion colors/CodeFactoryv3.vim
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ hi clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "openbsd"
let g:colors_name = "CodeFactoryv3"

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" GUI "
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion colors/DimBlue.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
" It's based on:
runtime colors/Dim.vim

let g:colors_name = "DimBlueBG"
let g:colors_name = "DimBlue"

hi Normal guibg=#000033
hi NonText guibg=#000011
Expand Down
2 changes: 1 addition & 1 deletion colors/DimGreen.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
" It's based on:
runtime colors/Dim.vim

let g:colors_name = "DimGreenBG"
let g:colors_name = "DimGreen"

hi Normal guibg=#001800
hi NonText guibg=#000800
Expand Down
2 changes: 1 addition & 1 deletion colors/DimGreens.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
" It's based on:
runtime colors/Dim.vim

let g:colors_name = "DimGreen2"
let g:colors_name = "DimGreens"

hi Normal guibg=#001800 guifg=#99aa99
hi Normal guibg=black guifg=ForestGreen
Expand Down
2 changes: 1 addition & 1 deletion colors/DimRed.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
" It's based on:
runtime colors/Dim.vim

let g:colors_name = "DimRedBG"
let g:colors_name = "DimRed"

hi Normal guibg=#180000
hi NonText guibg=#080000
Expand Down
2 changes: 1 addition & 1 deletion colors/DimSlate.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
" It's based on:
runtime colors/Dim.vim

let g:colors_name = "DimSlateBG"
let g:colors_name = "DimSlate"

hi Normal guibg=#002020
hi NonText guibg=#001818
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion colors/White2.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
" It's based on:
runtime colors/Light.vim

let g:colors_name = "White"
let g:colors_name = "White2"

hi Normal guibg=white
hi NonText guibg=grey95
Expand Down
2 changes: 1 addition & 1 deletion colors/abyss.vim
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ augroup doublebyte_space
autocmd!
autocmd VimEnter,WinEnter * match DoubleByteSpace / /
augroup END

let g:colors_name = "abyss"
" -------------------------------------------------------------------

function! s:hi(name, fg, bg, attr) abort
Expand Down
2 changes: 1 addition & 1 deletion colors/asmanian_blood.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

let g:colors_name = "asmanian_blood"
set background=dark

hi Normal guifg=#b4b0b0 guibg=#080404 gui=none
Expand Down
2 changes: 1 addition & 1 deletion colors/asmdev.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if version > 580
syntax reset
endif
endif
let g:colors_name="desert"
let g:colors_name="asmdev"

hi Normal guifg=white guibg=#304050

Expand Down
6 changes: 3 additions & 3 deletions colors/blackbeauty.vim
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
" Vim color file
" Maintainer: Surya
" Last Change: 12/23/2003 10:32:41 .
" Last Change: 12/23/2003 10:32:41 .
" version: 1.0
" This color scheme uses a dark background.
set background=dark
hi clear
if exists("syntax_on")
syntax reset
syntax reset
endif

let g:colors_name = "koehler"
let g:colors_name = "blackbeauty"
hi Normal guifg=white guibg=black
hi Scrollbar guibg=darkgray guifg=darkgray
hi Menu guifg=black guibg=gray
Expand Down
3 changes: 2 additions & 1 deletion colors/blackdust.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
let g:colors_name = "blackdust"
set background=dark
hi clear
hi clear

hi Boolean guifg=#dca3a3 gui=bold
hi Character guifg=#dca3a3 gui=bold
Expand Down
10 changes: 5 additions & 5 deletions colors/bluegreen.vim
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@


" Vim color file
" Maintainer:
" Last Change:
" URL:
" Maintainer:
" Last Change:
" URL:


" cool help screens
Expand All @@ -16,7 +16,7 @@ hi clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name="mine"
let g:colors_name="bluegreen"

hi Normal guifg=White guibg=#061A3E

Expand All @@ -30,7 +30,7 @@ hi ModeMsg guifg=#404040 guibg=#C0C0C0
hi MoreMsg guifg=darkturquoise guibg=#188F90
hi NonText guibg=#334C75 guifg=#9FADC5
hi Question guifg=#F4BB7E
hi Search guibg=fg guifg=bg
hi Search guibg=fg guifg=bg
hi SpecialKey guifg=#BF9261
hi StatusLine guibg=#004443 guifg=#c0ffff gui=none
hi StatusLineNC guibg=#067C7B guifg=#004443 gui=bold
Expand Down
8 changes: 4 additions & 4 deletions colors/bluenes.vim
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ hi clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name="nes"
let g:colors_name="bluenes"

"--------------------------------------------------------------------
"SyntasticStyleErrorLine - Links to 'SyntasticErrorLine' by default
"SyntasticErrorLine
"SyntasticWarningLine
"
hi SyntasticStyleWarningLine gui=bold guibg=#110000
hi SyntasticErrorLine gui=bold guibg=#220000
hi SyntasticStyleWarningLine gui=bold guibg=#110000
hi SyntasticErrorLine gui=bold guibg=#220000
hi Boolean gui=none guibg=#221133 guifg=#7722ff
hi cDefine gui=none guifg=#ffffff
hi cInclude gui=none guifg=#ffffff
Expand Down Expand Up @@ -99,4 +99,4 @@ syn region pythonDocstring start=+^\s*[uU]\?[rR]\?"""+ end=+"""+ keepend exclud
syn region pythonDocstring start=+^\s*[uU]\?[rR]\?'''+ end=+'''+ keepend excludenl contains=pythonEscape,@Spell,pythonDoctest,pythonDocTest2,pythonSpaceError

hi pythonDocstring gui=none guibg=#333333 guifg=#bbdd77
"- end of colorscheme -----------------------------------------------
"- end of colorscheme -----------------------------------------------
1 change: 1 addition & 0 deletions colors/brown.vim
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
let g:colors_name = "brown"
hi comment guifg=#fef8ff ctermfg=red
hi constant guifg=#aa712f ctermfg=white
hi cursor guibg=#5e3807 guifg=#deb887
Expand Down
File renamed without changes.
10 changes: 6 additions & 4 deletions colors/c.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
" Vim Syntax Highlighting File
"
"
" Language: C
"
" Extra: This is to copy the vi clone elvis on its
Expand All @@ -8,15 +8,17 @@
" Maintainer: Dean Jones<dean@cleancode.org>
"
" Comment: This works well with the default c.vim
" that comes with vim6.x. It basically
" that comes with vim6.x. It basically
" overrides the very bright colors it uses
" and uses simple white for highlighting
" and uses simple white for highlighting
" key words and types in the C language.
" If you're using Eterm, uncomment the
" If you're using Eterm, uncomment the
" Normal line specified below.

hi clear

let g:colors_name = "c"

" Eterm users, uncomment the line below
" hi Normal ctermfg=grey

Expand Down
100 changes: 50 additions & 50 deletions colors/calmar256-dark.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
" in your vimrc"}}}
"

" {{{ t_Co=256 is set - check
" {{{ t_Co=256 is set - check
if &t_Co != 256 && ! has("gui_running")
echomsg ""
echomsg "write 'set t_Co=256' in your .vimrc or this file won't load"
Expand All @@ -25,7 +25,7 @@ if exists("syntax_on")
syntax reset
endif

let g:colors_name = "calmar256"
let g:colors_name = "calmar256-dark"

let s:save_cpo = &cpo
set cpo&vim
Expand All @@ -34,16 +34,16 @@ set cpo&vim
" Format:"{{{
" \ ["color-item", "style", "foreground", "background" ],
"
" in vim :help help hl-<highlight-group>
" in vim :help help hl-<highlight-group>
" :help highlight-groups
"
" Color numbers (0-255) see:
" http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html

" ----------------------"}}}
" EDIT/ADD style/colors below
let s:colors256 = [

let s:colors256 = [
\ ["Normal", "NONE", "41", "232" ],
\ ["Cursor", "NONE", "255", "33" ],
\ ["CursorLine", "NONE", "NONE", "233" ],
Expand Down Expand Up @@ -131,52 +131,52 @@ else
" }}}
" color-mapping array {{{
" number of vim colors and #html colors equivalent for gui
let s:cmap = [
\ "#000000", "#800000", "#008000", "#808000",
\ "#000080", "#800080", "#008080", "#c0c0c0",
\ "#808080", "#ff0000", "#00ff00", "#ffff00",
\ "#0000ff", "#ff00ff", "#00ffff", "#ffffff",
let s:cmap = [
\ "#000000", "#800000", "#008000", "#808000",
\ "#000080", "#800080", "#008080", "#c0c0c0",
\ "#808080", "#ff0000", "#00ff00", "#ffff00",
\ "#0000ff", "#ff00ff", "#00ffff", "#ffffff",
\
\ "#000000", "#00005f", "#00008f", "#0000af", "#0000d7", "#0000ff",
\ "#005f00", "#005f5f", "#005f8f", "#005faf", "#005fd7", "#005fff",
\ "#008f00", "#008f5f", "#008f8f", "#008faf", "#008fd7", "#008fff",
\ "#00af00", "#00af5f", "#00af8f", "#00afaf", "#00afd7", "#00afff",
\ "#00d700", "#00d75f", "#00d78f", "#00d7af", "#00d7d7", "#00d7ff",
\ "#00ff00", "#00ff5f", "#00ff8f", "#00ffaf", "#00ffd7", "#00ffff",
\ "#5f0000", "#5f005f", "#5f008f", "#5f00af", "#5f00d7", "#5f00ff",
\ "#5f5f00", "#5f5f5f", "#5f5f8f", "#5f5faf", "#5f5fd7", "#5f5fff",
\ "#5f8f00", "#5f8f5f", "#5f8f8f", "#5f8faf", "#5f8fd7", "#5f8fff",
\ "#5faf00", "#5faf5f", "#5faf8f", "#5fafaf", "#5fafd7", "#5fafff",
\ "#5fd700", "#5fd75f", "#5fd78f", "#5fd7af", "#5fd7d7", "#5fd7ff",
\ "#5fff00", "#5fff5f", "#5fff8f", "#5fffaf", "#5fffd7", "#5fffff",
\ "#8f0000", "#8f005f", "#8f008f", "#8f00af", "#8f00d7", "#8f00ff",
\ "#8f5f00", "#8f5f5f", "#8f5f8f", "#8f5faf", "#8f5fd7", "#8f5fff",
\ "#8f8f00", "#8f8f5f", "#8f8f8f", "#8f8faf", "#8f8fd7", "#8f8fff",
\ "#8faf00", "#8faf5f", "#8faf8f", "#8fafaf", "#8fafd7", "#8fafff",
\ "#8fd700", "#8fd75f", "#8fd78f", "#8fd7af", "#8fd7d7", "#8fd7ff",
\ "#8fff00", "#8fff5f", "#8fff8f", "#8fffaf", "#8fffd7", "#8fffff",
\ "#af0000", "#af005f", "#af008f", "#af00af", "#af00d7", "#af00ff",
\ "#af5f00", "#af5f5f", "#af5f8f", "#af5faf", "#af5fd7", "#af5fff",
\ "#af8f00", "#af8f5f", "#af8f8f", "#af8faf", "#af8fd7", "#af8fff",
\ "#afaf00", "#afaf5f", "#afaf8f", "#afafaf", "#afafd7", "#afafff",
\ "#afd700", "#afd75f", "#afd78f", "#afd7af", "#afd7d7", "#afd7ff",
\ "#afff00", "#afff5f", "#afff8f", "#afffaf", "#afffd7", "#afffff",
\ "#d70000", "#d7005f", "#d7008f", "#d700af", "#d700d7", "#d700ff",
\ "#d75f00", "#d75f5f", "#d75f8f", "#d75faf", "#d75fd7", "#d75fff",
\ "#d78f00", "#d78f5f", "#d78f8f", "#d78faf", "#d78fd7", "#d78fff",
\ "#d7af00", "#d7af5f", "#d7af8f", "#d7afaf", "#d7afd7", "#d7afff",
\ "#d7d700", "#d7d75f", "#d7d78f", "#d7d7af", "#d7d7d7", "#d7d7ff",
\ "#d7ff00", "#d7ff5f", "#d7ff8f", "#d7ffaf", "#d7ffd7", "#d7ffff",
\ "#ff0000", "#ff005f", "#ff008f", "#ff00af", "#ff00d7", "#ff00ff",
\ "#ff5f00", "#ff5f5f", "#ff5f8f", "#ff5faf", "#ff5fd7", "#ff5fff",
\ "#ff8f00", "#ff8f5f", "#ff8f8f", "#ff8faf", "#ff8fd7", "#ff8fff",
\ "#ffaf00", "#ffaf5f", "#ffaf8f", "#ffafaf", "#ffafd7", "#ffafff",
\ "#ffd700", "#ffd75f", "#ffd78f", "#ffd7af", "#ffd7d7", "#ffd7ff",
\ "#ffff00", "#ffff5f", "#ffff8f", "#ffffaf", "#ffffd7", "#ffffff",
\ "#000000", "#00005f", "#00008f", "#0000af", "#0000d7", "#0000ff",
\ "#005f00", "#005f5f", "#005f8f", "#005faf", "#005fd7", "#005fff",
\ "#008f00", "#008f5f", "#008f8f", "#008faf", "#008fd7", "#008fff",
\ "#00af00", "#00af5f", "#00af8f", "#00afaf", "#00afd7", "#00afff",
\ "#00d700", "#00d75f", "#00d78f", "#00d7af", "#00d7d7", "#00d7ff",
\ "#00ff00", "#00ff5f", "#00ff8f", "#00ffaf", "#00ffd7", "#00ffff",
\ "#5f0000", "#5f005f", "#5f008f", "#5f00af", "#5f00d7", "#5f00ff",
\ "#5f5f00", "#5f5f5f", "#5f5f8f", "#5f5faf", "#5f5fd7", "#5f5fff",
\ "#5f8f00", "#5f8f5f", "#5f8f8f", "#5f8faf", "#5f8fd7", "#5f8fff",
\ "#5faf00", "#5faf5f", "#5faf8f", "#5fafaf", "#5fafd7", "#5fafff",
\ "#5fd700", "#5fd75f", "#5fd78f", "#5fd7af", "#5fd7d7", "#5fd7ff",
\ "#5fff00", "#5fff5f", "#5fff8f", "#5fffaf", "#5fffd7", "#5fffff",
\ "#8f0000", "#8f005f", "#8f008f", "#8f00af", "#8f00d7", "#8f00ff",
\ "#8f5f00", "#8f5f5f", "#8f5f8f", "#8f5faf", "#8f5fd7", "#8f5fff",
\ "#8f8f00", "#8f8f5f", "#8f8f8f", "#8f8faf", "#8f8fd7", "#8f8fff",
\ "#8faf00", "#8faf5f", "#8faf8f", "#8fafaf", "#8fafd7", "#8fafff",
\ "#8fd700", "#8fd75f", "#8fd78f", "#8fd7af", "#8fd7d7", "#8fd7ff",
\ "#8fff00", "#8fff5f", "#8fff8f", "#8fffaf", "#8fffd7", "#8fffff",
\ "#af0000", "#af005f", "#af008f", "#af00af", "#af00d7", "#af00ff",
\ "#af5f00", "#af5f5f", "#af5f8f", "#af5faf", "#af5fd7", "#af5fff",
\ "#af8f00", "#af8f5f", "#af8f8f", "#af8faf", "#af8fd7", "#af8fff",
\ "#afaf00", "#afaf5f", "#afaf8f", "#afafaf", "#afafd7", "#afafff",
\ "#afd700", "#afd75f", "#afd78f", "#afd7af", "#afd7d7", "#afd7ff",
\ "#afff00", "#afff5f", "#afff8f", "#afffaf", "#afffd7", "#afffff",
\ "#d70000", "#d7005f", "#d7008f", "#d700af", "#d700d7", "#d700ff",
\ "#d75f00", "#d75f5f", "#d75f8f", "#d75faf", "#d75fd7", "#d75fff",
\ "#d78f00", "#d78f5f", "#d78f8f", "#d78faf", "#d78fd7", "#d78fff",
\ "#d7af00", "#d7af5f", "#d7af8f", "#d7afaf", "#d7afd7", "#d7afff",
\ "#d7d700", "#d7d75f", "#d7d78f", "#d7d7af", "#d7d7d7", "#d7d7ff",
\ "#d7ff00", "#d7ff5f", "#d7ff8f", "#d7ffaf", "#d7ffd7", "#d7ffff",
\ "#ff0000", "#ff005f", "#ff008f", "#ff00af", "#ff00d7", "#ff00ff",
\ "#ff5f00", "#ff5f5f", "#ff5f8f", "#ff5faf", "#ff5fd7", "#ff5fff",
\ "#ff8f00", "#ff8f5f", "#ff8f8f", "#ff8faf", "#ff8fd7", "#ff8fff",
\ "#ffaf00", "#ffaf5f", "#ffaf8f", "#ffafaf", "#ffafd7", "#ffafff",
\ "#ffd700", "#ffd75f", "#ffd78f", "#ffd7af", "#ffd7d7", "#ffd7ff",
\ "#ffff00", "#ffff5f", "#ffff8f", "#ffffaf", "#ffffd7", "#ffffff",
\
\ "#080808", "#121212", "#1c1c1c", "#262626", "#303030", "#3a3a3a",
\ "#444444", "#4e4e4e", "#585858", "#606060", "#666666", "#767676",
\ "#808080", "#8a8a8a", "#949494", "#9e9e9e", "#a8a8a8", "#b2b2b2",
\ "#080808", "#121212", "#1c1c1c", "#262626", "#303030", "#3a3a3a",
\ "#444444", "#4e4e4e", "#585858", "#606060", "#666666", "#767676",
\ "#808080", "#8a8a8a", "#949494", "#9e9e9e", "#a8a8a8", "#b2b2b2",
\ "#bcbcbc", "#c6c6c6", "#d0d0d0", "#dadada", "#e4e4e4", "#eeeeee" ]
" }}}
" {{{ color setup for gvim
Expand Down
Loading