From 7c72d1c1de94006f30fa3f8b8e75bcdf1f1df64b Mon Sep 17 00:00:00 2001 From: Abhay Rana Date: Mon, 8 Aug 2016 12:31:29 +0530 Subject: [PATCH] [vim] Adds new theme --- .gitmodules | 3 + .../dracula-theme/.github/issue_template.md | 1 + .../.github/pull_request_template.md | 1 + files/vim/.vim/bundle/dracula-theme/LICENSE | 21 +++ files/vim/.vim/bundle/dracula-theme/README.md | 22 +++ .../autoload/airline/themes/dracula.vim | 90 ++++++++++++ .../bundle/dracula-theme/colors/dracula.vim | 135 ++++++++++++++++++ 7 files changed, 273 insertions(+) create mode 100644 .gitmodules create mode 100644 files/vim/.vim/bundle/dracula-theme/.github/issue_template.md create mode 100644 files/vim/.vim/bundle/dracula-theme/.github/pull_request_template.md create mode 100644 files/vim/.vim/bundle/dracula-theme/LICENSE create mode 100644 files/vim/.vim/bundle/dracula-theme/README.md create mode 100644 files/vim/.vim/bundle/dracula-theme/autoload/airline/themes/dracula.vim create mode 100644 files/vim/.vim/bundle/dracula-theme/colors/dracula.vim diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..ad6ee35 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "files/vim/.vim/bundle/dracula-theme"] + path = files/vim/.vim/bundle/dracula-theme + url = git@github.com:dracula/vim.git diff --git a/files/vim/.vim/bundle/dracula-theme/.github/issue_template.md b/files/vim/.vim/bundle/dracula-theme/.github/issue_template.md new file mode 100644 index 0000000..45a7be3 --- /dev/null +++ b/files/vim/.vim/bundle/dracula-theme/.github/issue_template.md @@ -0,0 +1 @@ +> If you're reporting an UI issue, make sure you take a screenshot that shows the actual bug. \ No newline at end of file diff --git a/files/vim/.vim/bundle/dracula-theme/.github/pull_request_template.md b/files/vim/.vim/bundle/dracula-theme/.github/pull_request_template.md new file mode 100644 index 0000000..622089f --- /dev/null +++ b/files/vim/.vim/bundle/dracula-theme/.github/pull_request_template.md @@ -0,0 +1 @@ +> If you're fixing a UI issue, make sure you take two screenshots. One that shows the actual bug and another that shows how you fixed it. \ No newline at end of file diff --git a/files/vim/.vim/bundle/dracula-theme/LICENSE b/files/vim/.vim/bundle/dracula-theme/LICENSE new file mode 100644 index 0000000..dcaf6d7 --- /dev/null +++ b/files/vim/.vim/bundle/dracula-theme/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Dracula Theme + +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/files/vim/.vim/bundle/dracula-theme/README.md b/files/vim/.vim/bundle/dracula-theme/README.md new file mode 100644 index 0000000..aa842c9 --- /dev/null +++ b/files/vim/.vim/bundle/dracula-theme/README.md @@ -0,0 +1,22 @@ +# Dracula for [Vim](http://vim.org) + +> A dark theme for [Vim](http://vim.org). + +![Screenshot](https://draculatheme.com/assets/img/screenshots/vim.png) + +## Install + +All instructions can be found at [draculatheme.com/vim](https://draculatheme.com/vim). + + +## Team + +This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/vim/graphs/contributors). + +[![Trevor Heins](https://avatars0.githubusercontent.com/u/1607028?v=3&s=70)](https://github.com/heinst) | +--- | +[Trevor Heins](https://github.com/heinst) | + +## License + +[MIT License](./LICENSE) diff --git a/files/vim/.vim/bundle/dracula-theme/autoload/airline/themes/dracula.vim b/files/vim/.vim/bundle/dracula-theme/autoload/airline/themes/dracula.vim new file mode 100644 index 0000000..3a33fd3 --- /dev/null +++ b/files/vim/.vim/bundle/dracula-theme/autoload/airline/themes/dracula.vim @@ -0,0 +1,90 @@ +" Dracula vim-airline theme +" +" Copyright 2016, All rights reserved +" +" Code licensed under the MIT license +" http://zenorocha.mit-license.org +" +" @author Extrante +" @author Zeno Rocha + +" Color palette +let s:gui01 = "#44475a" +let s:gui02 = "#5f6a8e" +let s:gui03 = "#ffb86c" +let s:gui04 = "#bd93f9" +let s:gui05 = "#ff5555" +let s:gui06 = "#f1fa8c" +let s:gui07 = "#50fa7b" +let s:gui08 = "#bd93f9" +let s:cterm01 = "236" +let s:cterm02 = "61" +let s:cterm03 = "215" +let s:cterm04 = "141" +let s:cterm05 = "160" +let s:cterm06 = "228" +let s:cterm07 = "84" +let s:cterm08 = "141" + +let s:guiWhite = "#f8f8f2" +let s:guiBlack = "#282a36" +let s:ctermWhite = "15" +let s:ctermBlack = "16" + +" Normal mode +let s:N1 = [ s:guiBlack , s:gui08 , s:ctermBlack , s:cterm08 ] +let s:N2 = [ s:guiWhite , s:gui02 , s:ctermWhite , s:cterm02 ] +let s:N3 = [ s:guiWhite , s:gui01 , s:ctermWhite , s:cterm01 ] + +" Insert mode +let s:I1 = [ s:guiBlack , s:gui07 , s:ctermBlack , s:cterm07 ] +let s:I2 = [ s:guiWhite , s:gui02 , s:ctermWhite , s:cterm02 ] +let s:I3 = [ s:guiWhite , s:gui01 , s:ctermWhite , s:cterm01 ] + +" Visual mode +let s:V1 = [ s:guiBlack , s:gui06 , s:ctermBlack , s:cterm06 ] +let s:V2 = [ s:guiWhite , s:gui02 , s:ctermWhite , s:cterm02 ] +let s:V3 = [ s:guiWhite , s:gui01 , s:ctermWhite, s:cterm01 ] + +" Replace mode +let s:R1 = [ s:guiBlack , s:gui05 , s:ctermWhite, s:cterm05 ] +let s:R2 = [ s:guiWhite , s:gui02 , s:ctermWhite, s:cterm02 ] +let s:R3 = [ s:guiWhite , s:gui01 , s:ctermWhite, s:cterm01 ] + +let g:airline#themes#dracula#palette = {} +let g:airline#themes#dracula#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#dracula#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#dracula#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#dracula#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#dracula#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3) + +" Inactive mode +let s:IN1 = [ s:gui04 , s:gui02 , s:cterm04 , s:cterm02 ] +let s:IN2 = [ s:gui04 , s:gui01 , s:cterm04 , s:cterm01 ] +let s:IA = [ s:IN1[1] , s:IN2[1] , s:IN1[3] , s:IN2[3] , '' ] +let g:airline#themes#dracula#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) + +" Warning info +let s:WARNING = [ s:guiBlack, s:gui03, s:ctermBlack, s:cterm03 ] +let s:ERROR = [ s:guiWhite, s:gui05, s:ctermWhite, s:cterm05 ] + +let g:airline#themes#dracula#palette.normal.airline_warning = s:WARNING +let g:airline#themes#dracula#palette.insert.airline_warning = s:WARNING +let g:airline#themes#dracula#palette.visual.airline_warning = s:WARNING +let g:airline#themes#dracula#palette.replace.airline_warning = s:WARNING + +let g:airline#themes#dracula#palette.normal.airline_error = s:ERROR +let g:airline#themes#dracula#palette.insert.airline_error = s:ERROR +let g:airline#themes#dracula#palette.visual.airline_error = s:ERROR +let g:airline#themes#dracula#palette.replace.airline_error = s:ERROR + +" CtrlP +if !get(g:, 'loaded_ctrlp', 0) + finish +endif + +let s:CP1 = [ s:guiWhite , s:gui01 , s:ctermWhite , s:cterm01 ] +let s:CP2 = [ s:guiWhite , s:gui02 , s:ctermWhite , s:cterm02 ] +let s:CP3 = [ s:guiWhite , s:gui08 , s:ctermWhite , s:cterm08 ] + +let g:airline#themes#dracula#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(s:CP1, s:CP2, s:CP3) diff --git a/files/vim/.vim/bundle/dracula-theme/colors/dracula.vim b/files/vim/.vim/bundle/dracula-theme/colors/dracula.vim new file mode 100644 index 0000000..4b85aaa --- /dev/null +++ b/files/vim/.vim/bundle/dracula-theme/colors/dracula.vim @@ -0,0 +1,135 @@ +" Dracula Theme v1.2.6 +" +" https://github.com/zenorocha/dracula-theme +" +" Copyright 2016, All rights reserved +" +" Code licensed under the MIT license +" http://zenorocha.mit-license.org +" +" @author Trevor Heins <@heinst> +" @author Éverton Ribeiro +" @author Zeno Rocha + +set background=dark +highlight clear + +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "dracula" + +hi Cursor ctermfg=17 ctermbg=231 cterm=NONE guifg=#282a36 guibg=#f8f8f0 gui=NONE +hi Visual ctermfg=NONE ctermbg=241 cterm=NONE guifg=NONE guibg=#44475a gui=NONE +hi CursorLine ctermbg=234 cterm=NONE guifg=NONE guibg=#44475a gui=NONE +hi CursorColumn ctermfg=NONE ctermbg=236 cterm=NONE guifg=NONE guibg=#3d3f49 gui=NONE +hi ColorColumn ctermfg=NONE ctermbg=236 cterm=NONE guifg=NONE guibg=#3d3f49 gui=NONE +hi LineNr ctermfg=60 ctermbg=NONE cterm=NONE guifg=#909194 guibg=#282a36 gui=NONE +hi VertSplit ctermfg=231 ctermbg=236 cterm=bold guifg=#64666d guibg=#64666d gui=bold +hi MatchParen ctermfg=212 ctermbg=NONE cterm=underline guifg=#ff79c6 guibg=NONE gui=underline +hi StatusLine ctermfg=231 ctermbg=236 cterm=bold guifg=#f8f8f2 guibg=#64666d gui=bold +hi StatusLineNC ctermfg=231 ctermbg=236 cterm=NONE guifg=#f8f8f2 guibg=#64666d gui=NONE +hi Pmenu ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi PmenuSel ctermfg=NONE ctermbg=236 cterm=NONE guifg=NONE guibg=#44475a gui=NONE +hi IncSearch ctermfg=17 ctermbg=228 cterm=NONE guifg=#282a36 guibg=#f1fa8c gui=NONE +hi Search ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline +hi Directory ctermfg=141 ctermbg=NONE cterm=NONE guifg=#bd93f9 guibg=NONE gui=NONE +hi Folded ctermfg=61 ctermbg=235 cterm=NONE guifg=#6272a4 guibg=#282a36 gui=NONE +hi SignColumn ctermfg=246 ctermbg=235 cterm=NONE guifg=#909194 guibg=#44475a gui=NONE +hi FoldColmun ctermfg=246 ctermbg=235 cterm=NONE guifg=#909194 guibg=#44475a gui=NONE +hi Normal guifg=#f8f8f2 guibg=#282a36 gui=NONE +hi Boolean ctermfg=141 ctermbg=NONE cterm=NONE guifg=#bd93f9 guibg=NONE gui=NONE +hi Character ctermfg=141 ctermbg=NONE cterm=NONE guifg=#bd93f9 guibg=NONE gui=NONE +hi Comment ctermfg=61 ctermbg=NONE cterm=NONE guifg=#6272a4 guibg=NONE gui=NONE +hi Conditional ctermfg=212 ctermbg=NONE cterm=NONE guifg=#ff79c6 guibg=NONE gui=NONE +hi Constant ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi Define ctermfg=212 ctermbg=NONE cterm=NONE guifg=#ff79c6 guibg=NONE gui=NONE +hi DiffAdd ctermfg=231 ctermbg=64 cterm=bold guifg=#f8f8f2 guibg=#468410 gui=bold +hi DiffDelete ctermfg=88 ctermbg=NONE cterm=NONE guifg=#8b080b guibg=NONE gui=NONE +hi DiffChange ctermfg=231 ctermbg=23 cterm=NONE guifg=#f8f8f2 guibg=#243a5f gui=NONE +hi DiffText ctermfg=231 ctermbg=24 cterm=bold guifg=#f8f8f2 guibg=#204a87 gui=bold +hi ErrorMsg ctermfg=231 ctermbg=212 cterm=NONE guifg=#f8f8f0 guibg=#ff79c6 gui=NONE +hi WarningMsg ctermfg=231 ctermbg=212 cterm=NONE guifg=#f8f8f0 guibg=#ff79c6 gui=NONE +hi Float ctermfg=141 ctermbg=NONE cterm=NONE guifg=#bd93f9 guibg=NONE gui=NONE +hi Function ctermfg=84 ctermbg=NONE cterm=NONE guifg=#50fa7b guibg=NONE gui=NONE +hi Identifier ctermfg=117 ctermbg=NONE cterm=NONE guifg=#8be9fd guibg=NONE gui=italic +hi Keyword ctermfg=212 ctermbg=NONE cterm=NONE guifg=#ff79c6 guibg=NONE gui=NONE +hi Label ctermfg=228 ctermbg=NONE cterm=NONE guifg=#f1fa8c guibg=NONE gui=NONE +hi NonText ctermfg=231 ctermbg=NONE cterm=NONE guifg=#525563 guibg=#282a36 gui=NONE +hi Number ctermfg=141 ctermbg=NONE cterm=NONE guifg=#bd93f9 guibg=NONE gui=NONE +hi Operator ctermfg=212 ctermbg=NONE cterm=NONE guifg=#ff79c6 guibg=NONE gui=NONE +hi PreProc ctermfg=212 ctermbg=NONE cterm=NONE guifg=#ff79c6 guibg=NONE gui=NONE +hi Special ctermfg=231 ctermbg=NONE cterm=NONE guifg=#f8f8f2 guibg=NONE gui=NONE +hi SpecialKey ctermfg=231 ctermbg=235 cterm=NONE guifg=#525563 guibg=#282a36 gui=NONE +hi Statement ctermfg=212 ctermbg=NONE cterm=NONE guifg=#ff79c6 guibg=NONE gui=NONE +hi StorageClass ctermfg=117 ctermbg=NONE cterm=NONE guifg=#8be9fd guibg=NONE gui=italic +hi String ctermfg=228 ctermbg=NONE cterm=NONE guifg=#f1fa8c guibg=NONE gui=NONE +hi Tag ctermfg=212 ctermbg=NONE cterm=NONE guifg=#ff79c6 guibg=NONE gui=NONE +hi Title ctermfg=231 ctermbg=NONE cterm=bold guifg=#f8f8f2 guibg=NONE gui=bold +hi Todo ctermfg=61 ctermbg=NONE cterm=inverse,bold guifg=#6272a4 guibg=NONE gui=inverse,bold +hi Type ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi Underlined ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline +hi rubyClass ctermfg=212 ctermbg=NONE cterm=NONE guifg=#ff79c6 guibg=NONE gui=NONE +hi rubyFunction ctermfg=84 ctermbg=NONE cterm=NONE guifg=#50fa7b guibg=NONE gui=NONE +hi rubyInterpolationDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi rubySymbol ctermfg=141 ctermbg=NONE cterm=NONE guifg=#bd93f9 guibg=NONE gui=NONE +hi rubyConstant ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic +hi rubyStringDelimiter ctermfg=228 ctermbg=NONE cterm=NONE guifg=#f1fa8c guibg=NONE gui=NONE +hi rubyBlockParameter ctermfg=215 ctermbg=NONE cterm=NONE guifg=#ffb86c guibg=NONE gui=italic +hi rubyInstanceVariable ctermfg=203 ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi rubyInclude ctermfg=212 ctermbg=NONE cterm=NONE guifg=#ff79c6 guibg=NONE gui=NONE +hi rubyGlobalVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi rubyRegexp ctermfg=228 ctermbg=NONE cterm=NONE guifg=#f1fa8c guibg=NONE gui=NONE +hi rubyRegexpDelimiter ctermfg=228 ctermbg=NONE cterm=NONE guifg=#f1fa8c guibg=NONE gui=NONE +hi rubyEscape ctermfg=141 ctermbg=NONE cterm=NONE guifg=#bd93f9 guibg=NONE gui=NONE +hi rubyControl ctermfg=212 ctermbg=NONE cterm=NONE guifg=#ff79c6 guibg=NONE gui=NONE +hi rubyClassVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi rubyOperator ctermfg=212 ctermbg=NONE cterm=NONE guifg=#ff79c6 guibg=NONE gui=NONE +hi rubyException ctermfg=212 ctermbg=NONE cterm=NONE guifg=#ff79c6 guibg=NONE gui=NONE +hi rubyPseudoVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi rubyRailsUserClass ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic +hi rubyRailsARAssociationMethod ctermfg=117 ctermbg=NONE cterm=NONE guifg=#8be9fd guibg=NONE gui=NONE +hi rubyRailsARMethod ctermfg=117 ctermbg=NONE cterm=NONE guifg=#8be9fd guibg=NONE gui=NONE +hi rubyRailsRenderMethod ctermfg=117 ctermbg=NONE cterm=NONE guifg=#8be9fd guibg=NONE gui=NONE +hi rubyRailsMethod ctermfg=117 ctermbg=NONE cterm=NONE guifg=#8be9fd guibg=NONE gui=NONE +hi erubyDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi erubyComment ctermfg=61 ctermbg=NONE cterm=NONE guifg=#6272a4 guibg=NONE gui=NONE +hi erubyRailsMethod ctermfg=117 ctermbg=NONE cterm=NONE guifg=#8be9fd guibg=NONE gui=NONE +hi htmlTag ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi htmlEndTag ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi htmlTagName ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi htmlArg ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi htmlSpecialChar ctermfg=141 ctermbg=NONE cterm=NONE guifg=#bd93f9 guibg=NONE gui=NONE +hi javaScriptFunction ctermfg=117 ctermbg=NONE cterm=NONE guifg=#8be9fd guibg=NONE gui=italic +hi javaScriptRailsFunction ctermfg=117 ctermbg=NONE cterm=NONE guifg=#8be9fd guibg=NONE gui=NONE +hi javaScriptBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi yamlKey ctermfg=212 ctermbg=NONE cterm=NONE guifg=#ff79c6 guibg=NONE gui=NONE +hi yamlAnchor ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi yamlAlias ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi yamlDocumentHeader ctermfg=228 ctermbg=NONE cterm=NONE guifg=#f1fa8c guibg=NONE gui=NONE +hi cssURL ctermfg=215 ctermbg=NONE cterm=NONE guifg=#ffb86c guibg=NONE gui=italic +hi cssFunctionName ctermfg=117 ctermbg=NONE cterm=NONE guifg=#8be9fd guibg=NONE gui=NONE +hi cssColor ctermfg=141 ctermbg=NONE cterm=NONE guifg=#bd93f9 guibg=NONE gui=NONE +hi cssPseudoClassId ctermfg=84 ctermbg=NONE cterm=NONE guifg=#50fa7b guibg=NONE gui=NONE +hi cssClassName ctermfg=84 ctermbg=NONE cterm=NONE guifg=#50fa7b guibg=NONE gui=NONE +hi cssValueLength ctermfg=141 ctermbg=NONE cterm=NONE guifg=#bd93f9 guibg=NONE gui=NONE +hi cssCommonAttr ctermfg=81 ctermbg=NONE cterm=NONE guifg=#6be5fd guibg=NONE gui=NONE +hi cssBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE +hi TabLineFill guifg=#333333 guibg=#282a36 gui=none +hi TabLine guifg=#666666 guibg=#282a36 gui=none +hi TabLineSel guifg=WHITE guibg=#282a36 gui=none + +"------------------- +" +"cygwin has an annoying behavior where it resets background to light +"regardless of what is set above, so we force it yet again +" +"add these to get cygwin shell working when used to ssh into a centos6 vm +"this requires your TERM=xterm-256color in the guest vm +"- one way to do this is to append to /home/vagrant/.bash_profile ala: +" TERM=xterm-256color +" export $TERM + +execute "set background=dark" +"-------------------