1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | " Vim color scheme
"
" Name: dotshare.vim
" Maintainer: Christian Brassat <crshd@mail.com>
" License: public domain
"
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "nucolors"
" General Colors
let NormalFG = '#BBBBBB'
let NormalBG = '#151515'
let DarkGray = '#101010'
let LightGray = '#404040'
let DarkRed = '#E84F4F'
let LightRed = '#D23D3D'
let DarkGreen = '#B8D68F'
let LightGreen = '#A0CF5D'
let DarkYellow = '#E1AA5D'
let LightYellow = '#F39D21'
let DarkBlue = '#7DC1CF'
let LightBlue = '#4E9FB1'
let DarkMagenta = '#9B64FB'
let LightMagenta = '#8542FF'
let DarkCyan = '#6D878D'
let LightCyan = '#42717B'
let White = '#FFFFFF'
" Specific Colors
let CursorColor = '#FF8939'
let CursorLColor = '#202020'
let LineNrFG = '#665544'
let LineNrBG = '#101010'
let FoldFG = DarkCyan
let FoldBG = '#101010'
let SplitFG = '#1B1B1B'
let SplitBG = SplitFG
let StatusBG = DarkGray
" GUI - bold/italic/underline/none
let GUI = 'bold'
exe 'hi Nontext guifg='.LightGray
exe 'hi Normal guifg='.NormalFG.' guibg='.NormalBG
exe 'hi Cursor guibg='.CursorColor
exe 'hi CursorLine guibg='.CursorLColor
exe 'hi LineNr guifg='.LightGray.' guibg='.DarkGray
exe 'hi Search guibg='.DarkCyan
exe 'hi VertSplit guifg='.SplitFG.' guibg='.SplitBG
exe 'hi Visual guibg='.DarkCyan
exe 'hi Folded guifg='.FoldFG.' guibg='.FoldBG
exe 'hi FoldColumn guifg='.FoldFG.' guibg='.FoldBG
exe 'hi Directory guifg='.LightGreen
exe 'hi Pmenu guifg='.NormalFG.' guibg='.LightGray
exe 'hi PmenuSel guifg='.DarkGray.' guibg='.LightGreen
exe 'hi PMenuSbar guibg='.DarkCyan
exe 'hi PMenuThumb guibg='.DarkGreen
exe 'hi Comment guifg='.LightGray
exe 'hi Todo guifg='.LightGray.' guibg=NONE'
exe 'hi NonText guifg='.DarkCyan
exe 'hi SpecialKey guifg='.DarkCyan
exe 'hi Constant guifg='.DarkBlue
exe 'hi Define guifg='.LightYellow.' gui='.GUI
exe 'hi Delimiter guifg='.DarkMagenta
exe 'hi Error guifg='.DarkGray.' guibg='.DarkRed
exe 'hi Function guifg='.DarkRed.' gui='.GUI
exe 'hi Identifier guifg='.LightYellow
exe 'hi Include guifg='.DarkYellow.' gui='.GUI
exe 'hi Keyword guifg='.DarkMagenta
exe 'hi Macro guifg='.DarkMagenta
exe 'hi Number guifg='.LightGreen
exe 'hi PreCondit guifg='.DarkMagenta.' gui='.GUI
exe 'hi PreProc guifg='.DarkYellow
exe 'hi Statement guifg='.LightBlue.' gui='.GUI
exe 'hi String guifg='.White
exe 'hi Title guifg='.LightGray
exe 'hi Type guifg='.DarkRed.' gui='.GUI
exe 'hi DiffAdd guifg='.DarkGray.' guibg='.LightGreen
exe 'hi DiffDelete guifg='.DarkGray.' guibg='.LightRed
hi link htmlTag xmlTag
hi link htmlTagName xmlTagName
hi link htmlEndTag xmlEndTag
exe 'hi xmlTag guifg='.LightMagenta
exe 'hi xmlTagName guifg='.LightMagenta
exe 'hi xmlEndTag guifg='.LightMagenta
" Status line - changes colors depending on insert mode
" Standard
exe 'hi User1 guifg='.DarkYellow.' guibg='.StatusBG.' gui='.GUI
exe 'hi User2 guifg='.DarkRed.' guibg='.StatusBG.' gui='.GUI
exe 'hi User3 guifg='.LightGreen.' guibg='.StatusBG.' gui='.GUI
exe 'hi User4 guifg='.DarkGray.' guibg='.DarkMagenta.' gui='.GUI
exe 'hi User5 guifg='.NormalFG.' guibg='.StatusBG
exe 'hi User6 guifg='.LightGray.' guibg='.StatusBG
exe 'hi User7 guifg='.StatusBG.' guibg='.StatusBG.' gui='.GUI
exe 'hi StatusLine guifg='.NormalFG.' guibg='.StatusBG.' gui='.GUI
exe 'hi StatusLineNC guifg='.LightGray.' guibg='.StatusBG.' gui='.GUI
function! InsertStatuslineColor(mode)
let DarkGray = '#101010'
let DarkRed = '#E84F4F'
let DarkBlue = '#7DC1CF'
let DarkMagenta = '#9B64FB'
if a:mode == 'i' " Insert Mode
exe 'hi User4 guifg='.DarkGray.' guibg='.DarkBlue
elseif a:mode == 'r' " Replace Mode
exe 'hi User4 guifg='.DarkGray.' guibg='.DarkRed
else
exe 'hi User4 guifg='.DarkGray.' guibg='.DarkMagenta
endif
endfunction
" Call function
exe 'au InsertEnter * call InsertStatuslineColor(v:insertmode)'
exe 'au InsertLeave * hi statusline guifg='.NormalFG.' guibg='.StatusBG
exe 'au InsertLeave * hi User4 guifg='.DarkGray.' guibg='.DarkMagenta
|
x
Notes
Font: Monaco
XColors: X::DotShare
vimrc: Can’t stop here! We’re in Vim-country!
sleeze said about 13 years ago
awesome… I was hoping you would add those variables…
<3
milomouse said about 13 years ago
looks good with accompanying files