mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-15 23:03:46 -05:00
Compare commits
66 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a5a99e9cc | ||
|
|
a2f2bc9bdf | ||
|
|
34fb99a2c2 | ||
|
|
4075d8fd5e | ||
|
|
9f8868d073 | ||
|
|
e3916c06d8 | ||
|
|
1838bef5e7 | ||
|
|
d2b66b8083 | ||
|
|
3975304d56 | ||
|
|
56735e636d | ||
|
|
c20f2ab738 | ||
|
|
a9eb94ef85 | ||
|
|
483241795c | ||
|
|
dd1fe895bb | ||
|
|
5e9b157a77 | ||
|
|
326f69f36c | ||
|
|
289094bce9 | ||
|
|
2499d62b56 | ||
|
|
273c030ede | ||
|
|
c526ba9aee | ||
|
|
92700c007a | ||
|
|
577ef4a65a | ||
|
|
3439f8c5a5 | ||
|
|
705e68d90d | ||
|
|
5e20a2b15d | ||
|
|
2480e48880 | ||
|
|
b6a6b52702 | ||
|
|
80591d87b1 | ||
|
|
82c92c5066 | ||
|
|
09505e562e | ||
|
|
47df02e570 | ||
|
|
e52d140d6e | ||
|
|
9bdd5254bc | ||
|
|
ffe202e4e2 | ||
|
|
bf7928aa7a | ||
|
|
cbe381d0d2 | ||
|
|
ca1e855a8f | ||
|
|
aa4c37a849 | ||
|
|
4c63ae1d92 | ||
|
|
b7d8d25b4a | ||
|
|
0e9c476f63 | ||
|
|
add6f2d3cc | ||
|
|
155430669f | ||
|
|
e5cd7f95b5 | ||
|
|
891cbe898e | ||
|
|
3f711ed0f5 | ||
|
|
1e2ab2027c | ||
|
|
5f12296890 | ||
|
|
aceff65285 | ||
|
|
5b39b67b93 | ||
|
|
d1a55f7c2d | ||
|
|
de2d8aba76 | ||
|
|
82f323a5d7 | ||
|
|
f90fff7d64 | ||
|
|
4c31ffa97d | ||
|
|
bbe9c0e188 | ||
|
|
84d074632f | ||
|
|
d9df993b4c | ||
|
|
3502bb972a | ||
|
|
c12826b69a | ||
|
|
8e08381e23 | ||
|
|
f14b625a67 | ||
|
|
dd1713bf39 | ||
|
|
cad9d5e88d | ||
|
|
d1d73e198c | ||
|
|
0b0c26c25f |
117
CHANGELOG.md
Normal file
117
CHANGELOG.md
Normal file
@@ -0,0 +1,117 @@
|
||||
# Change Log
|
||||
|
||||
## [Unreleased](https://github.com/morhetz/gruvbox/tree/HEAD)
|
||||
|
||||
[Full Changelog](https://github.com/morhetz/gruvbox/compare/v1.3.5...HEAD)
|
||||
|
||||
**Fixed bugs:**
|
||||
|
||||
- Lighter background on terminal [\#8](https://github.com/morhetz/gruvbox/issues/8)
|
||||
|
||||
**Closed issues:**
|
||||
|
||||
- Installation issue. [\#54](https://github.com/morhetz/gruvbox/issues/54)
|
||||
|
||||
- Italic font in terminal\(urxvt\) [\#49](https://github.com/morhetz/gruvbox/issues/49)
|
||||
|
||||
- Unable to log in when sourcing the palette shellscript [\#48](https://github.com/morhetz/gruvbox/issues/48)
|
||||
|
||||
- How can i modify multiple comment scheme [\#46](https://github.com/morhetz/gruvbox/issues/46)
|
||||
|
||||
- Remove comment highlight in iterm [\#44](https://github.com/morhetz/gruvbox/issues/44)
|
||||
|
||||
- Comments looking strange withing tmux [\#43](https://github.com/morhetz/gruvbox/issues/43)
|
||||
|
||||
- comments are reverse-video in xterm [\#41](https://github.com/morhetz/gruvbox/issues/41)
|
||||
|
||||
- What font are you using in the screenshots? [\#39](https://github.com/morhetz/gruvbox/issues/39)
|
||||
|
||||
- vim-signature crashes when I use gruvbox [\#38](https://github.com/morhetz/gruvbox/issues/38)
|
||||
|
||||
- Color of statusbar in inactive windows [\#37](https://github.com/morhetz/gruvbox/issues/37)
|
||||
|
||||
- Go method and struct highlighting missing [\#36](https://github.com/morhetz/gruvbox/issues/36)
|
||||
|
||||
- gruvbox\_256palette.sh doesn't work for Konsole [\#35](https://github.com/morhetz/gruvbox/issues/35)
|
||||
|
||||
- Contrast in jekyll markdown files [\#33](https://github.com/morhetz/gruvbox/issues/33)
|
||||
|
||||
- Pentadactyl Gruvbox Theme [\#32](https://github.com/morhetz/gruvbox/issues/32)
|
||||
|
||||
- make vertsplit better [\#31](https://github.com/morhetz/gruvbox/issues/31)
|
||||
|
||||
- Console support. [\#30](https://github.com/morhetz/gruvbox/issues/30)
|
||||
|
||||
- How can I change the background color? [\#29](https://github.com/morhetz/gruvbox/issues/29)
|
||||
|
||||
- Some words are not bold [\#28](https://github.com/morhetz/gruvbox/issues/28)
|
||||
|
||||
- Terminal theme on base gruvbox [\#25](https://github.com/morhetz/gruvbox/issues/25)
|
||||
|
||||
- Markdown has inverted colors when using \* [\#24](https://github.com/morhetz/gruvbox/issues/24)
|
||||
|
||||
- how install it on mac osx [\#23](https://github.com/morhetz/gruvbox/issues/23)
|
||||
|
||||
- Comments color for Terminal Vim [\#22](https://github.com/morhetz/gruvbox/issues/22)
|
||||
|
||||
- Move palette files to gruvbox-generalized [\#20](https://github.com/morhetz/gruvbox/issues/20)
|
||||
|
||||
- Maybe add Gruvbox Airline theme? [\#19](https://github.com/morhetz/gruvbox/issues/19)
|
||||
|
||||
- For Sublime text [\#18](https://github.com/morhetz/gruvbox/issues/18)
|
||||
|
||||
**Merged pull requests:**
|
||||
|
||||
- Fix the 256 palette script failed login issue [\#53](https://github.com/morhetz/gruvbox/pull/53) ([jonasmalacofilho](https://github.com/jonasmalacofilho))
|
||||
|
||||
- add minimal coloring for gitcommit highlighting [\#52](https://github.com/morhetz/gruvbox/pull/52) ([daniely](https://github.com/daniely))
|
||||
|
||||
- For terminals, turn off italics by default. [\#47](https://github.com/morhetz/gruvbox/pull/47) ([ryanmjacobs](https://github.com/ryanmjacobs))
|
||||
|
||||
- Change color of vertical/horizontal seperators between split windows [\#45](https://github.com/morhetz/gruvbox/pull/45) ([deshtop](https://github.com/deshtop))
|
||||
|
||||
- Improve gruvbox with C code [\#34](https://github.com/morhetz/gruvbox/pull/34) ([gladiac](https://github.com/gladiac))
|
||||
|
||||
- Fix for linux console [\#27](https://github.com/morhetz/gruvbox/pull/27) ([vyp](https://github.com/vyp))
|
||||
|
||||
- Colors for plugin vimshell.vim [\#21](https://github.com/morhetz/gruvbox/pull/21) ([joelmo](https://github.com/joelmo))
|
||||
|
||||
## [v1.3.5](https://github.com/morhetz/gruvbox/tree/v1.3.5) (2014-03-19)
|
||||
|
||||
[Full Changelog](https://github.com/morhetz/gruvbox/compare/v0.0.8...v1.3.5)
|
||||
|
||||
**Implemented enhancements:**
|
||||
|
||||
- Better selection colors [\#15](https://github.com/morhetz/gruvbox/issues/15)
|
||||
|
||||
- When hlsearch is on, the cursor inverts the search color and not visible [\#2](https://github.com/morhetz/gruvbox/issues/2)
|
||||
|
||||
**Fixed bugs:**
|
||||
|
||||
- Problem with changing between dark and light on 256 color terminal [\#7](https://github.com/morhetz/gruvbox/issues/7)
|
||||
|
||||
- IndentGuides coloring doesn't show up [\#1](https://github.com/morhetz/gruvbox/issues/1)
|
||||
|
||||
**Closed issues:**
|
||||
|
||||
- Requesting rxvt-unicode theme [\#17](https://github.com/morhetz/gruvbox/issues/17)
|
||||
|
||||
- gruvbox\_256palette.sh gets reset \(gnome-terminal on Ubuntu\) [\#13](https://github.com/morhetz/gruvbox/issues/13)
|
||||
|
||||
- Powerline colors [\#12](https://github.com/morhetz/gruvbox/issues/12)
|
||||
|
||||
- Info necessary for making a port of this colorscheme [\#10](https://github.com/morhetz/gruvbox/issues/10)
|
||||
|
||||
**Merged pull requests:**
|
||||
|
||||
- Fix GNU screen detection for \*-bce [\#16](https://github.com/morhetz/gruvbox/pull/16) ([blueyed](https://github.com/blueyed))
|
||||
|
||||
- Added iTerm2 dark theme [\#11](https://github.com/morhetz/gruvbox/pull/11) ([Greduan](https://github.com/Greduan))
|
||||
|
||||
- Fix typo in Readme [\#5](https://github.com/morhetz/gruvbox/pull/5) ([ViViDboarder](https://github.com/ViViDboarder))
|
||||
|
||||
## [v0.0.8](https://github.com/morhetz/gruvbox/tree/v0.0.8) (2012-12-08)
|
||||
|
||||
|
||||
|
||||
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
||||
214
README.md
214
README.md
@@ -1,16 +1,20 @@
|
||||
gruvbox
|
||||
=======
|
||||
<p align="center"><img src="https://imgrush.com/h0EfiWAdb4Ke.svg"></p>
|
||||
|
||||
Retro groove color scheme for Vim.
|
||||
gruvbox is heavily inspired by [badwolf][], [jellybeans][] and [solarized][].
|
||||
|
||||
Gruvbox is heavily inspired by [badwolf][], [jellybeans][] and [solarized][].
|
||||
|
||||
Designed as a bright theme with pastel 'retro groove' colors and light/dark mode switching in the way of [solarized][]. The main focus when developing Gruvbox is to keep colors easily distinguishable, contrast enough and still pleasant for the eyes.
|
||||
Designed as a bright theme with pastel 'retro groove' colors and light/dark mode switching in the way of [solarized][]. The main focus when developing gruvbox is to keep colors easily distinguishable, contrast enough and still pleasant for the eyes.
|
||||
|
||||
[badwolf]: https://github.com/sjl/badwolf
|
||||
[jellybeans]: https://github.com/nanotech/jellybeans.vim
|
||||
[solarized]: http://ethanschoonover.com/solarized
|
||||
|
||||
Attention
|
||||
---------
|
||||
|
||||
1. [Read this first](https://github.com/morhetz/gruvbox/wiki/Terminal-specific)
|
||||
2. Typeface from gallery is [Fantasque Sans Mono](https://github.com/belluzj/fantasque-sans)
|
||||
3. Typeface from screenshots below is [Fira Mono](http://www.carrois.com/fira-4-1/)
|
||||
|
||||
Screenshots
|
||||
-----------
|
||||
|
||||
@@ -20,17 +24,48 @@ Refer [Gallery][] for more syntax-specific screenshots.
|
||||
|
||||
### Dark mode
|
||||
|
||||

|
||||

|
||||
|
||||
### Light mode
|
||||
|
||||

|
||||

|
||||
|
||||
### Airline theme
|
||||
|
||||

|
||||
|
||||
Palette
|
||||
-------
|
||||
|
||||
### Dark mode
|
||||
|
||||

|
||||
|
||||
### Light mode
|
||||
|
||||

|
||||
|
||||
Contrast options
|
||||
----------------
|
||||
|
||||
Refer [wiki section][] for contrast configuration and other options.
|
||||
|
||||
[wiki section]: https://github.com/morhetz/gruvbox/wiki/Configuration#ggruvbox_contrast_dark
|
||||
|
||||

|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
||||
Please check [wiki][] for installation details, terminal-specific setup, troubleshooting, configuration options and others.
|
||||
|
||||
[wiki]: https://github.com/morhetz/gruvbox/wiki
|
||||
|
||||
Features
|
||||
--------
|
||||
|
||||
* Lots of style-customization options (contrast, color invertion, italics usage etc.)
|
||||
* Extended filetype highlighting: Html, Xml, Vim, Clojure, C, Python, JavaScript, CoffeeScript, Ruby, Objective-C, Go, Lua, MoonScript, Java
|
||||
* Extended filetype highlighting: Html, Xml, Vim (and ES6 with [yajs.vim](https://github.com/othree/yajs.vim)), Clojure, C, Python, JavaScript, CoffeeScript, Ruby, Objective-C, Go, Lua, MoonScript, Java, Markdown, Haskell
|
||||
* Supported plugins: [EasyMotion][], [vim-sneak][], [Indent Guides][], [indentLine][], [Rainbow Parentheses][], [Airline][], [GitGutter][], [Signify][], [ShowMarks][], [Signature][], [Syntastic][], [CtrlP][], [Startify][]
|
||||
|
||||
[EasyMotion]: https://github.com/Lokaltog/vim-easymotion
|
||||
@@ -47,163 +82,26 @@ Features
|
||||
[CtrlP]: https://github.com/kien/ctrlp.vim
|
||||
[Startify]: https://github.com/mhinz/vim-startify
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
gruvbox comes in two modes, dark and light. To toggle between them with F5 you can add these to your .vimrc:
|
||||
|
||||
map <silent> <F5> :call gruvbox#bg_toggle()<CR>
|
||||
imap <silent> <F5> <ESC>:call gruvbox#bg_toggle()<CR>a
|
||||
vmap <silent> <F5> <ESC>:call gruvbox#bg_toggle()<CR>gv
|
||||
|
||||
Just setting background to an appropriate value would work as well:
|
||||
|
||||
set bg=dark " Setting dark mode
|
||||
set bg=light " Setting light mode
|
||||
|
||||
Since gruvbox inverts cursor color, it could be awkward to determine current position, when the search is highlighted. To get single cursor color while searching, map these gruvbox functions same way:
|
||||
|
||||
map <silent> <F4> :call gruvbox#hls_toggle()<CR>
|
||||
imap <silent> <F4> <ESC>:call gruvbox#hls_toggle()<CR>a
|
||||
vmap <silent> <F4> <ESC>:call gruvbox#hls_toggle()<CR>gv
|
||||
|
||||
nnoremap <silent> <CR> :call gruvbox#hls_hide()<CR><CR>
|
||||
|
||||
nnoremap * :let @/ = ""<CR>:call gruvbox#hls_show()<CR>*
|
||||
nnoremap / :let @/ = ""<CR>:call gruvbox#hls_show()<CR>/
|
||||
nnoremap ? :let @/ = ""<CR>:call gruvbox#hls_show()<CR>?
|
||||
|
||||
So you'll get `g:gruvbox_hls_cursor` (orange by default) cursor color when highlight search is on and inverted one otherwise. With such mappings you could also toggle search highlight on and off with F4 and hide it with Enter.
|
||||
|
||||
Terminal-specific
|
||||
-----------------
|
||||
|
||||
(...).
|
||||
|
||||
* (Recommended) 256-color palette with gruvbox-palette shell script
|
||||
* 16 colors palette mode with gruvbox terminal colorscheme
|
||||
|
||||
Troubleshooting
|
||||
---------------
|
||||
|
||||
### Italics gets inverted (terminal)
|
||||
|
||||
Most terminals doesn't allow italics so the text that must be italicized goes inverted. To prevent that disable `g:gruvbox_italic` option.
|
||||
|
||||
### Effect of gruvbox_256palette.sh gets reset on Alt-Tab
|
||||
|
||||
That's known issue with Ubuntu GTK-themes. Refer [†][1] for more details. Known affected terms are Gnome Terminal, Terminator and Lilyterm and probably more VTE-based. Though with Lilyterm option 'Dim text when inactive' set off everything works fine.
|
||||
|
||||
[1]: https://github.com/morhetz/gruvbox/issues/13#issuecomment-30063099
|
||||
|
||||
### Lighter colors with iTerm2
|
||||
|
||||
(...). Refer [†][2] and [‡][3] for more details.
|
||||
|
||||
[2]: https://github.com/morhetz/gruvbox/issues/8#issuecomment-26782758
|
||||
[3]: https://github.com/morhetz/gruvbox/issues/8#issuecomment-27627656
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
### g:gruvbox_bold
|
||||
Enables bold text.
|
||||
default: `1`
|
||||
|
||||
### g:gruvbox_italic
|
||||
Enables italic text.
|
||||
default: `1`
|
||||
|
||||
### g:gruvbox_underline
|
||||
Enables underlined text.
|
||||
default: `1`
|
||||
|
||||
### g:gruvbox_undercurl
|
||||
Enables undercurled text.
|
||||
default: `1`
|
||||
|
||||
### g:gruvbox_termcolors
|
||||
Uses 256-color palette (suitable to pair with gruvbox-palette shell script). If you're dissatisfied with that, set option value to `16` to fallback base colors to your terminal palette. Refer [†][4] for details.
|
||||
default: `256`
|
||||
|
||||
[4]: https://github.com/morhetz/gruvbox/issues/4
|
||||
|
||||
### g:gruvbox_contrast
|
||||
Possible values are `soft`, `medium` and `hard`.
|
||||
default: `medium`
|
||||
|
||||
### g:gruvbox_hls_cursor
|
||||
Changes cursor background while search is highlighted. Possible values are any of gruvbox palette.
|
||||
default: `orange`
|
||||
|
||||
### g:gruvbox_sign_column
|
||||
Changes sign column background color. Possible values are any of gruvbox palette.
|
||||
default: `dark1`
|
||||
|
||||
### g:gruvbox_italicize_comments
|
||||
Enables italic for comments.
|
||||
default: `1`
|
||||
|
||||
### g:gruvbox_italicize_strings
|
||||
Enables italic for strings.
|
||||
default: `0`
|
||||
|
||||
### g:gruvbox_invert_selection
|
||||
Inverts selected text.
|
||||
default: `1`
|
||||
|
||||
### g:gruvbox_invert_signs
|
||||
Inverts GitGutter and Syntastic signs. Useful to rapidly focus on.
|
||||
default: `0`
|
||||
|
||||
### g:gruvbox_invert_indent_guides
|
||||
Inverts indent guides. Could be nice paired with `set list` so it would highlight only tab symbols instead of it's background.
|
||||
default: `0`
|
||||
|
||||
Functions
|
||||
---------
|
||||
|
||||
### gruvbox#bg_toggle()
|
||||
|
||||
(...)
|
||||
|
||||
### gruvbox#invert_signs_toggle()
|
||||
|
||||
(...)
|
||||
|
||||
### gruvbox#hls_show()
|
||||
|
||||
(...)
|
||||
|
||||
### gruvbox#hls_show_cursor()
|
||||
|
||||
(...)
|
||||
|
||||
### gruvbox#hls_hide()
|
||||
|
||||
(...)
|
||||
|
||||
### gruvbox#hls_hide_cursor()
|
||||
|
||||
(...)
|
||||
|
||||
### gruvbox#hls_toggle()
|
||||
|
||||
(...)
|
||||
|
||||
Contributions
|
||||
-------------
|
||||
|
||||
See [gruvbox-generalized][] repo for contributions, ports and extras.
|
||||
See [gruvbox-contrib][] repo for contributions, ports and extras.
|
||||
|
||||
[gruvbox-generalized]: https://github.com/morhetz/gruvbox-generalized
|
||||
[gruvbox-contrib]: https://github.com/morhetz/gruvbox-contrib
|
||||
|
||||
ToDo
|
||||
----
|
||||
|
||||
* Filetype syntax highlighting (R, TeX and I'm still dissatisfied with CSS)
|
||||
* Plugin support (MiniBufExplorer, Tagbar)
|
||||
* Airline theme
|
||||
* Filetype syntax highlighting (R, TeX, Swift, Erlang and I'm still dissatisfied with CSS)
|
||||
* Plugin support (MiniBufExplorer, Tagbar, Netrw, VimPLug)
|
||||
* Lightline theme
|
||||
|
||||
Self-Promotion
|
||||
--------------
|
||||
|
||||
If you like gruvbox follow the repository on
|
||||
[GitHub](https://github.com/morhetz/gruvbox) and vote for it on
|
||||
[vim.org](http://www.vim.org/scripts/script.php?script_id=4349).
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
69
autoload/airline/themes/gruvbox.vim
Normal file
69
autoload/airline/themes/gruvbox.vim
Normal file
@@ -0,0 +1,69 @@
|
||||
" -----------------------------------------------------------------------------
|
||||
" File: gruvbox.vim
|
||||
" Description: Retro groove color scheme for Airline
|
||||
" Author: morhetz <morhetz@gmail.com>
|
||||
" Source: https://github.com/morhetz/gruvbox
|
||||
" Last Modified: 22 Aug 2014
|
||||
" -----------------------------------------------------------------------------
|
||||
|
||||
let g:airline#themes#gruvbox#palette = {}
|
||||
|
||||
function! airline#themes#gruvbox#refresh()
|
||||
|
||||
let M0 = airline#themes#get_highlight('Identifier')
|
||||
let accents_group = airline#themes#get_highlight('Special')
|
||||
let modified_group = [M0[0], '', M0[2], '', '']
|
||||
let warning_group = airline#themes#get_highlight2(['Normal', 'bg'], ['Question', 'fg'])
|
||||
|
||||
let s:N1 = airline#themes#get_highlight2(['Normal', 'bg'], ['StatusLineNC', 'bg'])
|
||||
let s:N2 = airline#themes#get_highlight2(['StatusLineNC', 'bg'], ['StatusLineNC', 'fg'])
|
||||
let s:N3 = airline#themes#get_highlight2(['StatusLineNC', 'bg'], ['CursorLine', 'bg'])
|
||||
let g:airline#themes#gruvbox#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||
let g:airline#themes#gruvbox#palette.normal_modified = { 'airline_c': modified_group }
|
||||
let g:airline#themes#gruvbox#palette.normal.airline_warning = warning_group
|
||||
let g:airline#themes#gruvbox#palette.normal_modified.airline_warning = warning_group
|
||||
|
||||
let s:I1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Identifier', 'fg'])
|
||||
let s:I2 = s:N2
|
||||
let s:I3 = airline#themes#get_highlight2(['Normal', 'fg'], ['StatusLineNC', 'fg'])
|
||||
let g:airline#themes#gruvbox#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||
let g:airline#themes#gruvbox#palette.insert_modified = g:airline#themes#gruvbox#palette.normal_modified
|
||||
let g:airline#themes#gruvbox#palette.insert.airline_warning = g:airline#themes#gruvbox#palette.normal.airline_warning
|
||||
let g:airline#themes#gruvbox#palette.insert_modified.airline_warning = g:airline#themes#gruvbox#palette.normal_modified.airline_warning
|
||||
|
||||
let s:R1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Structure', 'fg'])
|
||||
let s:R2 = s:I2
|
||||
let s:R3 = s:I3
|
||||
let g:airline#themes#gruvbox#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||
let g:airline#themes#gruvbox#palette.replace_modified = g:airline#themes#gruvbox#palette.normal_modified
|
||||
let g:airline#themes#gruvbox#palette.replace.airline_warning = g:airline#themes#gruvbox#palette.normal.airline_warning
|
||||
let g:airline#themes#gruvbox#palette.replace_modified.airline_warning = g:airline#themes#gruvbox#palette.normal_modified.airline_warning
|
||||
|
||||
let s:V1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Question', 'fg'])
|
||||
let s:V2 = s:N2
|
||||
let s:V3 = airline#themes#get_highlight2(['Normal', 'bg'], ['TabLine', 'fg'])
|
||||
let g:airline#themes#gruvbox#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||
let g:airline#themes#gruvbox#palette.visual_modified = { 'airline_c': [ s:V3[0], '', s:V3[2], '', '' ] }
|
||||
let g:airline#themes#gruvbox#palette.visual.airline_warning = g:airline#themes#gruvbox#palette.normal.airline_warning
|
||||
let g:airline#themes#gruvbox#palette.visual_modified.airline_warning = g:airline#themes#gruvbox#palette.normal_modified.airline_warning
|
||||
|
||||
let s:IA = airline#themes#get_highlight2(['TabLine', 'fg'], ['CursorLine', 'bg'])
|
||||
let g:airline#themes#gruvbox#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
|
||||
let g:airline#themes#gruvbox#palette.inactive_modified = { 'airline_c': modified_group }
|
||||
|
||||
let g:airline#themes#gruvbox#palette.accents = { 'red': accents_group }
|
||||
|
||||
let s:TF = airline#themes#get_highlight2(['Normal', 'bg'], ['Normal', 'bg'])
|
||||
let g:airline#themes#gruvbox#palette.tabline = {
|
||||
\ 'airline_tab': s:N2,
|
||||
\ 'airline_tabsel': s:N1,
|
||||
\ 'airline_tabtype': s:V1,
|
||||
\ 'airline_tabfill': s:TF,
|
||||
\ 'airline_tabhid': s:IA,
|
||||
\ 'airline_tabmod': s:I1
|
||||
\ }
|
||||
|
||||
endfunction
|
||||
|
||||
call airline#themes#gruvbox#refresh()
|
||||
|
||||
@@ -3,19 +3,9 @@
|
||||
" Description: Retro groove color scheme for Vim
|
||||
" Author: morhetz <morhetz@gmail.com>
|
||||
" Source: https://github.com/morhetz/gruvbox
|
||||
" Last Modified: 11 Mar 2014
|
||||
" Last Modified: 09 Apr 2014
|
||||
" -----------------------------------------------------------------------------
|
||||
|
||||
function! gruvbox#bg_toggle()
|
||||
if &background == 'dark'
|
||||
set background=light
|
||||
else
|
||||
set background=dark
|
||||
endif
|
||||
|
||||
colorcheme gruvbox
|
||||
endfunction
|
||||
|
||||
function! gruvbox#invert_signs_toggle()
|
||||
if g:gruvbox_invert_signs == 0
|
||||
let g:gruvbox_invert_signs=1
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
" Description: Retro groove color scheme for Vim
|
||||
" Author: morhetz <morhetz@gmail.com>
|
||||
" Source: https://github.com/morhetz/gruvbox
|
||||
" Last Modified: 11 Mar 2014
|
||||
" Last Modified: 20 Aug 2015
|
||||
" -----------------------------------------------------------------------------
|
||||
|
||||
" Supporting code -------------------------------------------------------------
|
||||
@@ -29,7 +29,11 @@ if !exists('g:gruvbox_bold')
|
||||
let g:gruvbox_bold=1
|
||||
endif
|
||||
if !exists('g:gruvbox_italic')
|
||||
let g:gruvbox_italic=1
|
||||
if has('gui_running') || $TERM_ITALICS == 'true'
|
||||
let g:gruvbox_italic=1
|
||||
else
|
||||
let g:gruvbox_italic=0
|
||||
endif
|
||||
endif
|
||||
if !exists('g:gruvbox_undercurl')
|
||||
let g:gruvbox_undercurl=1
|
||||
@@ -37,6 +41,9 @@ endif
|
||||
if !exists('g:gruvbox_underline')
|
||||
let g:gruvbox_underline=1
|
||||
endif
|
||||
if !exists('g:gruvbox_guisp_fallback') || index(['fg', 'bg'], g:gruvbox_guisp_fallback) == -1
|
||||
let g:gruvbox_guisp_fallback='none'
|
||||
endif
|
||||
|
||||
if !exists('g:gruvbox_italicize_comments')
|
||||
let g:gruvbox_italicize_comments=1
|
||||
@@ -45,6 +52,14 @@ if !exists('g:gruvbox_italicize_strings')
|
||||
let g:gruvbox_italicize_strings=0
|
||||
endif
|
||||
|
||||
if !exists('g:gruvbox_improved_strings')
|
||||
let g:gruvbox_improved_strings=0
|
||||
endif
|
||||
|
||||
if !exists('g:gruvbox_improved_warnings')
|
||||
let g:gruvbox_improved_warnings=0
|
||||
endif
|
||||
|
||||
if !exists('g:gruvbox_termcolors')
|
||||
let g:gruvbox_termcolors=256
|
||||
endif
|
||||
@@ -61,6 +76,14 @@ if !exists('g:gruvbox_sign_column')
|
||||
let g:gruvbox_sign_column='dark1'
|
||||
endif
|
||||
|
||||
if !exists('g:gruvbox_color_column')
|
||||
let g:gruvbox_color_column='dark1'
|
||||
endif
|
||||
|
||||
if !exists('g:gruvbox_vert_split')
|
||||
let g:gruvbox_vert_split='dark2'
|
||||
endif
|
||||
|
||||
if !exists('g:gruvbox_invert_signs')
|
||||
let g:gruvbox_invert_signs=0
|
||||
endif
|
||||
@@ -73,6 +96,18 @@ if !exists('g:gruvbox_contrast')
|
||||
let g:gruvbox_contrast='medium'
|
||||
endif
|
||||
|
||||
if !exists('g:gruvbox_contrast_dark')
|
||||
let g:gruvbox_contrast_dark='medium'
|
||||
endif
|
||||
|
||||
if !exists('g:gruvbox_contrast_light')
|
||||
let g:gruvbox_contrast_light='medium'
|
||||
endif
|
||||
|
||||
if !exists('g:gruvbox_invert_tabline')
|
||||
let g:gruvbox_invert_tabline=0
|
||||
endif
|
||||
|
||||
let s:is_dark=(&background == 'dark')
|
||||
|
||||
" }}}
|
||||
@@ -125,8 +160,16 @@ if s:is_dark
|
||||
if g:gruvbox_contrast == 'hard'
|
||||
let s:gb.dark0 = ['1d2021', 234] " 29-32-33
|
||||
endif
|
||||
|
||||
if g:gruvbox_contrast_dark == 'soft'
|
||||
let s:gb.dark0 = ['32302f', 236] " 50-48-47
|
||||
endif
|
||||
|
||||
if g:gruvbox_contrast_dark == 'hard'
|
||||
let s:gb.dark0 = ['1d2021', 234] " 29-32-33
|
||||
endif
|
||||
else
|
||||
let s:gb.dark0 = ['fdf4c1', 229] " 253-244-193
|
||||
let s:gb.dark0 = ['fbf1c7', 229] " 251-241-199
|
||||
let s:gb.dark1 = ['ebdbb2', 223] " 235-219-178
|
||||
let s:gb.dark2 = ['d5c4a1', 250] " 213-196-161
|
||||
let s:gb.dark3 = ['bdae93', 248] " 189-174-147
|
||||
@@ -151,7 +194,7 @@ else
|
||||
let s:gb.orange = ['af3a03', 130] " 175-58-3
|
||||
|
||||
if g:gruvbox_termcolors == 16
|
||||
let s:gb.dark0 = ['fdf4c1', 0]
|
||||
let s:gb.dark0 = ['fbf1c7', 0]
|
||||
let s:gb.light4 = ['7c6f64', 7]
|
||||
let s:gb.medium = ['928374', 8]
|
||||
let s:gb.red = ['9d0006', 9]
|
||||
@@ -164,11 +207,19 @@ else
|
||||
endif
|
||||
|
||||
if g:gruvbox_contrast == 'soft'
|
||||
let s:gb.dark0 = ['f4e8ba', 228] " 244-232-186
|
||||
let s:gb.dark0 = ['f2e5bc', 228] " 242-229-188
|
||||
endif
|
||||
|
||||
if g:gruvbox_contrast == 'hard'
|
||||
let s:gb.dark0 = ['ffffc8', 230] " 255-255-200
|
||||
let s:gb.dark0 = ['f9f5d7', 230] " 249-245-215
|
||||
endif
|
||||
|
||||
if g:gruvbox_contrast_light == 'soft'
|
||||
let s:gb.dark0 = ['f2e5bc', 228] " 242-229-188
|
||||
endif
|
||||
|
||||
if g:gruvbox_contrast_light == 'hard'
|
||||
let s:gb.dark0 = ['f9f5d7', 230] " 249-245-215
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -180,7 +231,11 @@ function! s:HL(group, fg, ...)
|
||||
|
||||
let histring = 'hi ' . a:group . ' '
|
||||
|
||||
if strlen(a:fg)
|
||||
" if (Foreground override enabled) && ( We were passed a guisp value )
|
||||
if g:gruvbox_guisp_fallback == 'fg' && a:0 >= 3 && strlen(a:3) && a:3 != 'none'
|
||||
let c = get(s:gb, a:3)
|
||||
let histring .= 'guifg=#' . c[0] . ' ctermfg=' . c[1] . ' '
|
||||
elseif strlen(a:fg)
|
||||
if a:fg == 'fg'
|
||||
let histring .= 'guifg=fg ctermfg=fg '
|
||||
elseif a:fg == 'bg'
|
||||
@@ -193,7 +248,11 @@ function! s:HL(group, fg, ...)
|
||||
endif
|
||||
endif
|
||||
|
||||
if a:0 >= 1 && strlen(a:1)
|
||||
" if (Background override enabled) && ( We were passed a guisp value )
|
||||
if g:gruvbox_guisp_fallback == 'bg' && a:0 >= 3 && strlen(a:3) && a:3 != 'none'
|
||||
let c = get(s:gb, a:3)
|
||||
let histring .= 'guibg=#' . c[0] . ' ctermbg=' . c[1] . ' '
|
||||
elseif a:0 >= 1 && strlen(a:1)
|
||||
if a:1 == 'bg'
|
||||
let histring .= 'guibg=bg ctermbg=bg '
|
||||
elseif a:fg == 'fg'
|
||||
@@ -208,6 +267,8 @@ function! s:HL(group, fg, ...)
|
||||
let histring .= 'guibg=NONE ctermbg=NONE '
|
||||
endif
|
||||
|
||||
" Hotfixing #24;
|
||||
" TODO: get rid of this spaghetti
|
||||
if a:0 >= 2 && strlen(a:2)
|
||||
if a:2 == 'none'
|
||||
let histring .= 'gui=NONE cterm=NONE '
|
||||
@@ -231,6 +292,36 @@ function! s:HL(group, fg, ...)
|
||||
else
|
||||
let histring .= 'gui=' . a:2 . ' cterm=' . a:2 . ' '
|
||||
endif
|
||||
elseif a:2 == 'bold,underline'
|
||||
if g:gruvbox_underline == 0 && g:gruvbox_bold == 0
|
||||
let histring .= 'gui=NONE cterm=NONE '
|
||||
elseif g:gruvbox_underline == 0
|
||||
let histring .= 'gui=bold cterm=bold '
|
||||
elseif g:gruvbox_bold == 0
|
||||
let histring .= 'gui=underline cterm=underline '
|
||||
else
|
||||
let histring .= 'gui=' . a:2 . ' cterm=' . a:2 . ' '
|
||||
endif
|
||||
elseif a:2 == 'underline,italic'
|
||||
if g:gruvbox_underline == 0 && g:gruvbox_italic == 0
|
||||
let histring .= 'gui=NONE cterm=NONE '
|
||||
elseif g:gruvbox_underline == 0
|
||||
let histring .= 'gui=italic cterm=italic '
|
||||
elseif g:gruvbox_italic == 0
|
||||
let histring .= 'gui=underline cterm=underline '
|
||||
else
|
||||
let histring .= 'gui=' . a:2 . ' cterm=' . a:2 . ' '
|
||||
endif
|
||||
elseif a:2 == 'bold,underline,italic'
|
||||
if g:gruvbox_italic == 0 && g:gruvbox_bold == 0
|
||||
let histring .= 'gui=underline cterm=underline '
|
||||
elseif g:gruvbox_italic == 0
|
||||
let histring .= 'gui=bold,underline cterm=bold,underline '
|
||||
elseif g:gruvbox_bold == 0
|
||||
let histring .= 'gui=italic,underline cterm=italic,underline '
|
||||
else
|
||||
let histring .= 'gui=' . a:2 . ' cterm=' . a:2 . ' '
|
||||
endif
|
||||
else
|
||||
let histring .= 'gui=' . a:2 . ' cterm=' . a:2 . ' '
|
||||
endif
|
||||
@@ -273,12 +364,18 @@ if version >= 700
|
||||
" Screen column that the cursor is
|
||||
call s:HL('CursorColumn', 'none', 'dark1')
|
||||
|
||||
if g:gruvbox_invert_tabline == 0
|
||||
" Tab pages line filler
|
||||
call s:HL('TabLineFill', 'dark4', 'bg')
|
||||
" Active tab page label
|
||||
call s:HL('TabLineSel', 'bg', 'dark4', 'bold')
|
||||
" Not active tab page label
|
||||
call s:HL('TabLine', 'dark4', 'bg')
|
||||
else
|
||||
call s:HL('TabLineFill', 'bg', 'dark4')
|
||||
call s:HL('TabLineSel', 'dark4', 'bg', 'bold')
|
||||
call s:HL('TabLine', 'bg', 'dark4')
|
||||
endif
|
||||
|
||||
" Match paired bracket under the cursor
|
||||
call s:HL('MatchParen', 'none', 'dark3', 'bold')
|
||||
@@ -286,7 +383,7 @@ endif
|
||||
|
||||
if version >= 703
|
||||
" Highlighted screen columns
|
||||
call s:HL('ColorColumn', 'none', 'dark1')
|
||||
call s:HL('ColorColumn', 'none', g:gruvbox_color_column)
|
||||
|
||||
" Concealed element: \lambda → λ
|
||||
call s:HL('Conceal', 'blue', 'none')
|
||||
@@ -315,7 +412,7 @@ call s:HL('StatusLine', 'dark4', 'dark0', 'bold,inverse')
|
||||
call s:HL('StatusLineNC', 'dark2', 'light4', 'bold,inverse')
|
||||
|
||||
" The column separating vertically split windows
|
||||
call s:HL('VertSplit', 'light4', 'dark2')
|
||||
call s:HL('VertSplit', 'light4', g:gruvbox_vert_split)
|
||||
|
||||
" Current match in wildmenu completion
|
||||
call s:HL('WildMenu', 'blue', 'dark2', 'bold')
|
||||
@@ -366,7 +463,12 @@ call s:HL('lCursor', 'none', 'none', 'inverse')
|
||||
" }}}
|
||||
" Syntax Highlighting: {{{
|
||||
|
||||
call s:HL('Special', 'orange')
|
||||
if g:gruvbox_improved_strings == 0
|
||||
call s:HL('Special', 'orange')
|
||||
else
|
||||
call s:HL('Special', 'dark1', 'orange', 'italic')
|
||||
endif
|
||||
|
||||
if g:gruvbox_italicize_comments == 0
|
||||
call s:HL('Comment', 'medium', 'none')
|
||||
else
|
||||
@@ -414,7 +516,11 @@ call s:HL('Character', 'purple')
|
||||
if g:gruvbox_italicize_strings == 0
|
||||
call s:HL('String', 'green')
|
||||
else
|
||||
call s:HL('String', 'green', 'none', 'italic')
|
||||
if g:gruvbox_improved_strings == 0
|
||||
call s:HL('String', 'green', 'none', 'italic')
|
||||
else
|
||||
call s:HL('String', 'dark1', 'light1', 'italic')
|
||||
endif
|
||||
endif
|
||||
" Boolean constant: TRUE, false
|
||||
call s:HL('Boolean', 'purple')
|
||||
@@ -462,8 +568,12 @@ call s:HL('DiffText', 'dark0', 'yellow')
|
||||
" Spelling: {{{
|
||||
|
||||
if has("spell")
|
||||
" Not capitalised word
|
||||
call s:HL('SpellCap', 'none', 'none', 'undercurl', 'red')
|
||||
" Not capitalised word, or compile warnings
|
||||
if g:gruvbox_improved_warnings == 0
|
||||
call s:HL('SpellCap', 'none', 'none', 'undercurl', 'red')
|
||||
else
|
||||
call s:HL('SpellCap', 'green', 'none', 'italic,bold')
|
||||
endif
|
||||
" Not recognized word
|
||||
call s:HL('SpellBad', 'none', 'none', 'undercurl', 'blue')
|
||||
" Wrong spelling for selected region
|
||||
@@ -491,63 +601,58 @@ hi! link SneakStreakStatusLine Search
|
||||
" }}}
|
||||
" Indent Guides: {{{
|
||||
|
||||
let g:indent_guides_auto_colors = 0
|
||||
if !exists('g:indent_guides_auto_colors')
|
||||
let g:indent_guides_auto_colors = 0
|
||||
endif
|
||||
|
||||
if g:gruvbox_invert_indent_guides == 0
|
||||
call s:HL('IndentGuidesOdd', 'bg', 'dark2')
|
||||
call s:HL('IndentGuidesEven', 'bg', 'dark1')
|
||||
else
|
||||
call s:HL('IndentGuidesOdd', 'bg', 'dark2', 'inverse')
|
||||
call s:HL('IndentGuidesEven', 'bg', 'dark3', 'inverse')
|
||||
if g:indent_guides_auto_colors == 0
|
||||
if g:gruvbox_invert_indent_guides == 0
|
||||
call s:HL('IndentGuidesOdd', 'bg', 'dark2')
|
||||
call s:HL('IndentGuidesEven', 'bg', 'dark1')
|
||||
else
|
||||
call s:HL('IndentGuidesOdd', 'bg', 'dark2', 'inverse')
|
||||
call s:HL('IndentGuidesEven', 'bg', 'dark3', 'inverse')
|
||||
endif
|
||||
endif
|
||||
|
||||
" }}}
|
||||
" IndentLine: {{{
|
||||
|
||||
let g:indentLine_color_term = s:gb.dark2[1]
|
||||
let g:indentLine_color_gui = '#' . s:gb.dark2[0]
|
||||
if !exists('g:indentLine_color_term')
|
||||
let g:indentLine_color_term = s:gb.dark2[1]
|
||||
endif
|
||||
if !exists('g:indentLine_color_gui')
|
||||
let g:indentLine_color_gui = '#' . s:gb.dark2[0]
|
||||
endif
|
||||
|
||||
" }}}
|
||||
" Rainbow Parentheses: {{{
|
||||
|
||||
let g:rbpt_colorpairs =
|
||||
\ [
|
||||
\ ['brown', '#458588'], ['Darkblue', '#b16286'],
|
||||
\ ['darkgray', '#cc241d'], ['darkgreen', '#d65d0e'],
|
||||
\ ['darkcyan', '#458588'], ['darkred', '#b16286'],
|
||||
\ ['darkmagenta', '#cc241d'], ['brown', '#d65d0e'],
|
||||
\ ['gray', '#458588'], ['black', '#b16286'],
|
||||
\ ['darkmagenta', '#cc241d'], ['Darkblue', '#d65d0e'],
|
||||
\ ['darkgreen', '#458588'], ['darkcyan', '#b16286'],
|
||||
\ ['darkred', '#cc241d'], ['red', '#d65d0e'],
|
||||
\ ]
|
||||
|
||||
let g:rainbow_guifgs =
|
||||
\ [
|
||||
\ '#458588', '#b16286', '#cc241d', '#d65d0e',
|
||||
\ '#458588', '#b16286', '#cc241d', '#d65d0e',
|
||||
\ '#458588', '#b16286', '#cc241d', '#d65d0e',
|
||||
\ '#458588', '#b16286', '#cc241d', '#d65d0e'
|
||||
\ ]
|
||||
|
||||
let g:rainbow_ctermfgs =
|
||||
\ [
|
||||
\ 'brown', 'Darkblue', 'darkgray', 'darkgreen',
|
||||
\ 'darkcyan', 'darkred', 'darkmagenta', 'brown',
|
||||
\ 'gray', 'black', 'darkmagenta', 'Darkblue',
|
||||
\ 'darkgreen', 'darkcyan', 'darkred', 'red',
|
||||
\ ]
|
||||
|
||||
"}}}
|
||||
" Airline: {{{
|
||||
|
||||
if !exists('g:airline_theme_map')
|
||||
let g:airline_theme_map = { 'gruvbox.*': 'tomorrow' }
|
||||
else
|
||||
let g:airline_theme_map['gruvbox.*'] = 'tomorrow'
|
||||
if !exists('g:rbpt_colorpairs')
|
||||
let g:rbpt_colorpairs =
|
||||
\ [
|
||||
\ ['blue', '#458588'], ['magenta', '#b16286'],
|
||||
\ ['red', '#cc241d'], ['166', '#d65d0e']
|
||||
\ ]
|
||||
endif
|
||||
|
||||
" }}}
|
||||
let g:rainbow_guifgs = [ '#d65d0e', '#cc241d', '#b16286', '#458588' ]
|
||||
let g:rainbow_ctermfgs = [ '166', 'red', 'magenta', 'blue' ]
|
||||
|
||||
if !exists('g:rainbow_conf')
|
||||
let g:rainbow_conf = {}
|
||||
endif
|
||||
if !has_key(g:rainbow_conf, 'guifgs')
|
||||
let g:rainbow_conf['guifgs'] = g:rainbow_guifgs
|
||||
endif
|
||||
if !has_key(g:rainbow_conf, 'ctermfgs')
|
||||
let g:rainbow_conf['ctermfgs'] = g:rainbow_ctermfgs
|
||||
endif
|
||||
|
||||
let g:niji_dark_colours = g:rbpt_colorpairs
|
||||
let g:niji_light_colours = g:rbpt_colorpairs
|
||||
|
||||
"}}}
|
||||
" GitGutter: {{{
|
||||
|
||||
if g:gruvbox_invert_signs == 0
|
||||
@@ -562,6 +667,12 @@ else
|
||||
call s:HL('GitGutterChangeDelete', 'aqua', g:gruvbox_sign_column, 'inverse')
|
||||
endif
|
||||
|
||||
" }}}
|
||||
" gitcommit highlighting "{{{
|
||||
|
||||
call s:HL('gitcommitSelectedFile', 'green')
|
||||
call s:HL('gitcommitDiscardedFile', 'red')
|
||||
|
||||
" }}}
|
||||
" Signify: {{{
|
||||
|
||||
@@ -600,8 +711,8 @@ else
|
||||
call s:HL('SignatureMarkText', 'blue', g:gruvbox_sign_column, 'inverse')
|
||||
endif
|
||||
|
||||
let g:SignatureMarkerTextHL='SignatureMarkerText'
|
||||
let g:SignatureMarkTextHL='SignatureMarkText'
|
||||
let g:SignatureMarkerTextHL='"SignatureMarkerText"'
|
||||
let g:SignatureMarkTextHL='"SignatureMarkText"'
|
||||
|
||||
" }}}
|
||||
" ShowMarks: {{{
|
||||
@@ -644,6 +755,14 @@ call s:HL('StartifySpecial', 'dark2')
|
||||
call s:HL('StartifyHeader', 'orange')
|
||||
call s:HL('StartifyFooter', 'dark2')
|
||||
|
||||
" }}}
|
||||
" Vimshell: {{{
|
||||
|
||||
let g:vimshell_escape_colors = map(split(
|
||||
\ 'dark4 red green yellow blue purple aqua light4 ' .
|
||||
\ 'dark0 red green orange blue purple aqua light0'
|
||||
\ ), '"#" . s:gb[v:val][0]')
|
||||
|
||||
" }}}
|
||||
|
||||
" Filetype specific -----------------------------------------------------------
|
||||
@@ -675,6 +794,15 @@ call s:HL('htmlLink', 'light4', 'none', 'underline')
|
||||
|
||||
call s:HL('htmlSpecialChar', 'orange')
|
||||
|
||||
call s:HL('htmlBold', 'fg', 'bg', 'bold')
|
||||
call s:HL('htmlBoldUnderline', 'fg', 'bg', 'bold,underline')
|
||||
call s:HL('htmlBoldItalic', 'fg', 'bg', 'bold,italic')
|
||||
call s:HL('htmlBoldUnderlineItalic', 'fg', 'bg', 'bold,underline,italic')
|
||||
|
||||
call s:HL('htmlUnderline', 'fg', 'bg', 'underline')
|
||||
call s:HL('htmlUnderlineItalic', 'fg', 'bg', 'underline,italic')
|
||||
call s:HL('htmlItalic', 'fg', 'bg', 'italic')
|
||||
|
||||
" }}}
|
||||
" Xml: {{{
|
||||
|
||||
@@ -806,7 +934,7 @@ call s:HL('cssGeneratedContentProp', 'aqua')
|
||||
" }}}
|
||||
" JavaScript: {{{
|
||||
|
||||
call s:HL('javaScriptBraces', 'orange')
|
||||
call s:HL('javaScriptBraces', 'light1')
|
||||
call s:HL('javaScriptFunction', 'aqua')
|
||||
call s:HL('javaScriptIdentifier', 'red')
|
||||
call s:HL('javaScriptMember', 'blue')
|
||||
@@ -814,6 +942,62 @@ call s:HL('javaScriptNumber', 'purple')
|
||||
call s:HL('javaScriptNull', 'purple')
|
||||
call s:HL('javaScriptParens', 'light3')
|
||||
|
||||
" }}}
|
||||
" YAJS: {{{
|
||||
|
||||
call s:HL('javascriptImport', 'aqua')
|
||||
call s:HL('javascriptExport', 'aqua')
|
||||
call s:HL('javascriptClassKeyword', 'aqua')
|
||||
call s:HL('javascriptClassExtends', 'aqua')
|
||||
call s:HL('javascriptDefault', 'aqua')
|
||||
|
||||
call s:HL('javascriptClassName', 'yellow')
|
||||
call s:HL('javascriptClassSuperName', 'yellow')
|
||||
call s:HL('javascriptGlobal', 'yellow')
|
||||
|
||||
call s:HL('javascriptEndColons', 'light1')
|
||||
call s:HL('javascriptFuncArg', 'light1')
|
||||
call s:HL('javascriptGlobalMethod', 'light1')
|
||||
call s:HL('javascriptNodeGlobal', 'light1')
|
||||
|
||||
" call s:HL('javascriptVariable', 'orange')
|
||||
call s:HL('javascriptVariable', 'red')
|
||||
" call s:HL('javascriptIdentifier', 'orange')
|
||||
" call s:HL('javascriptClassSuper', 'orange')
|
||||
call s:HL('javascriptIdentifier', 'orange')
|
||||
call s:HL('javascriptClassSuper', 'orange')
|
||||
|
||||
" call s:HL('javascriptFuncKeyword', 'orange')
|
||||
" call s:HL('javascriptAsyncFunc', 'orange')
|
||||
call s:HL('javascriptFuncKeyword', 'aqua')
|
||||
call s:HL('javascriptAsyncFunc', 'aqua')
|
||||
call s:HL('javascriptClassStatic', 'orange')
|
||||
|
||||
call s:HL('javascriptOperator', 'red')
|
||||
call s:HL('javascriptForOperator', 'red')
|
||||
call s:HL('javascriptYield', 'red')
|
||||
call s:HL('javascriptExceptions', 'red')
|
||||
call s:HL('javascriptMessage', 'red')
|
||||
|
||||
call s:HL('javascriptTemplateSB', 'aqua')
|
||||
call s:HL('javascriptTemplateSubstitution', 'light1')
|
||||
|
||||
" call s:HL('javascriptLabel', 'blue')
|
||||
" call s:HL('javascriptObjectLabel', 'blue')
|
||||
" call s:HL('javascriptPropertyName', 'blue')
|
||||
call s:HL('javascriptLabel', 'light1')
|
||||
call s:HL('javascriptObjectLabel', 'light1')
|
||||
call s:HL('javascriptPropertyName', 'light1')
|
||||
|
||||
call s:HL('javascriptLogicSymbols', 'light1')
|
||||
call s:HL('javascriptArrowFunc', 'light1')
|
||||
|
||||
call s:HL('javascriptDocParamName', 'light4')
|
||||
call s:HL('javascriptDocTags', 'light4')
|
||||
call s:HL('javascriptDocNotation', 'light4')
|
||||
call s:HL('javascriptDocParamType', 'light4')
|
||||
call s:HL('javascriptDocNamedParamType', 'light4')
|
||||
|
||||
" }}}
|
||||
" CoffeeScript: {{{
|
||||
|
||||
@@ -876,6 +1060,111 @@ call s:HL('javaOperator', 'orange')
|
||||
call s:HL('javaVarArg', 'green')
|
||||
|
||||
" }}}
|
||||
" Elixir: {{{
|
||||
|
||||
hi! link elixirDocString Comment
|
||||
|
||||
call s:HL('elixirStringDelimiter', 'green')
|
||||
call s:HL('elixirInterpolationDelimiter', 'aqua')
|
||||
|
||||
" }}}
|
||||
" Scala: {{{
|
||||
|
||||
" NB: scala vim syntax file is kinda horrible
|
||||
call s:HL('scalaNameDefinition', 'light1')
|
||||
call s:HL('scalaCaseFollowing', 'light1')
|
||||
call s:HL('scalaCapitalWord', 'light1')
|
||||
call s:HL('scalaTypeExtension', 'light1')
|
||||
|
||||
call s:HL('scalaKeyword', 'red')
|
||||
call s:HL('scalaKeywordModifier', 'red')
|
||||
|
||||
call s:HL('scalaSpecial', 'aqua')
|
||||
call s:HL('scalaOperator', 'light1')
|
||||
|
||||
call s:HL('scalaTypeDeclaration', 'yellow')
|
||||
call s:HL('scalaTypeTypePostDeclaration', 'yellow')
|
||||
|
||||
call s:HL('scalaInstanceDeclaration', 'light1')
|
||||
call s:HL('scalaInterpolation', 'aqua')
|
||||
|
||||
" }}}
|
||||
" Markdown: {{{
|
||||
|
||||
call s:HL('markdownItalic', 'light3', 'none', 'italic')
|
||||
|
||||
call s:HL('markdownH1', 'green', 'none', 'bold')
|
||||
call s:HL('markdownH2', 'green', 'none', 'bold')
|
||||
call s:HL('markdownH3', 'yellow', 'none', 'bold')
|
||||
call s:HL('markdownH4', 'yellow', 'none', 'bold')
|
||||
call s:HL('markdownH5', 'yellow')
|
||||
call s:HL('markdownH6', 'yellow')
|
||||
|
||||
call s:HL('markdownCode', 'aqua')
|
||||
call s:HL('markdownCodeBlock', 'aqua')
|
||||
call s:HL('markdownCodeDelimiter', 'aqua')
|
||||
|
||||
call s:HL('markdownBlockquote', 'medium')
|
||||
call s:HL('markdownListMarker', 'medium')
|
||||
call s:HL('markdownOrderedListMarker', 'medium')
|
||||
call s:HL('markdownRule', 'medium')
|
||||
call s:HL('markdownHeadingRule', 'medium')
|
||||
|
||||
call s:HL('markdownUrlDelimiter', 'light3')
|
||||
call s:HL('markdownLinkDelimiter', 'light3')
|
||||
call s:HL('markdownLinkTextDelimiter', 'light3')
|
||||
|
||||
call s:HL('markdownHeadingDelimiter', 'orange')
|
||||
call s:HL('markdownUrl', 'purple')
|
||||
call s:HL('markdownUrlTitleDelimiter', 'green')
|
||||
|
||||
call s:HL('markdownLinkText', 'medium', 'none', 'underline')
|
||||
call s:HL('markdownIdDeclaration', 'medium', 'none', 'underline')
|
||||
|
||||
" }}}
|
||||
" Haskell: {{{
|
||||
|
||||
" call s:HL('haskellType', 'yellow')
|
||||
" call s:HL('haskellOperators', 'orange')
|
||||
" call s:HL('haskellConditional', 'aqua')
|
||||
" call s:HL('haskellLet', 'orange')
|
||||
"
|
||||
call s:HL('haskellType', 'light1')
|
||||
call s:HL('haskellIdentifier', 'light1')
|
||||
call s:HL('haskellSeparator', 'light1')
|
||||
call s:HL('haskellDelimiter', 'light4')
|
||||
call s:HL('haskellOperators', 'blue')
|
||||
"
|
||||
call s:HL('haskellBacktick', 'orange')
|
||||
call s:HL('haskellStatement', 'orange')
|
||||
call s:HL('haskellConditional', 'orange')
|
||||
|
||||
call s:HL('haskellLet', 'aqua')
|
||||
call s:HL('haskellDefault', 'aqua')
|
||||
call s:HL('haskellWhere', 'aqua')
|
||||
call s:HL('haskellBottom', 'aqua')
|
||||
call s:HL('haskellBlockKeywords', 'aqua')
|
||||
call s:HL('haskellImportKeywords', 'aqua')
|
||||
call s:HL('haskellDeclKeyword', 'aqua')
|
||||
call s:HL('haskellDeriving', 'aqua')
|
||||
call s:HL('haskellAssocType', 'aqua')
|
||||
|
||||
call s:HL('haskellNumber', 'purple')
|
||||
call s:HL('haskellPragma', 'purple')
|
||||
|
||||
call s:HL('haskellString', 'green')
|
||||
call s:HL('haskellChar', 'green')
|
||||
|
||||
" }}}
|
||||
" Json: {{{
|
||||
|
||||
call s:HL('jsonKeyword', 'green')
|
||||
call s:HL('jsonQuote', 'green')
|
||||
call s:HL('jsonBraces', 'light1')
|
||||
call s:HL('jsonString', 'light1')
|
||||
|
||||
" }}}
|
||||
|
||||
|
||||
" Functions -------------------------------------------------------------------
|
||||
" Search Highlighting Cursor {{{
|
||||
|
||||
@@ -1,116 +1,118 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "${TERM%%-*}" = "screen" ]; then
|
||||
if [ -n "$TMUX" ]; then
|
||||
printf "\033Ptmux;\033\033]4;236;rgb:32/30/2f\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;234;rgb:1d/20/21\007\033\\"
|
||||
if [ -n "$TMUX" ]; then
|
||||
printf "\033Ptmux;\033\033]4;236;rgb:32/30/2f\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;234;rgb:1d/20/21\007\033\\"
|
||||
|
||||
printf "\033Ptmux;\033\033]4;235;rgb:28/28/28\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;237;rgb:3c/38/36\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;239;rgb:50/49/45\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;241;rgb:66/5c/54\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;243;rgb:7c/6f/64\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;235;rgb:28/28/28\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;237;rgb:3c/38/36\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;239;rgb:50/49/45\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;241;rgb:66/5c/54\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;243;rgb:7c/6f/64\007\033\\"
|
||||
|
||||
printf "\033Ptmux;\033\033]4;244;rgb:92/83/74\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;245;rgb:92/83/74\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;244;rgb:92/83/74\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;245;rgb:92/83/74\007\033\\"
|
||||
|
||||
printf "\033Ptmux;\033\033]4;228;rgb:f4/e8/ba\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;230;rgb:ff/ff/c8\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;228;rgb:f2/e5/bc\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;230;rgb:f9/f5/d7\007\033\\"
|
||||
|
||||
printf "\033Ptmux;\033\033]4;229;rgb:fd/f4/c1\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;223;rgb:eb/db/b2\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;250;rgb:d5/c4/a1\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;248;rgb:bd/ae/93\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;246;rgb:a8/99/84\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;229;rgb:fb/f1/c7\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;223;rgb:eb/db/b2\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;250;rgb:d5/c4/a1\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;248;rgb:bd/ae/93\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;246;rgb:a8/99/84\007\033\\"
|
||||
|
||||
printf "\033Ptmux;\033\033]4;167;rgb:fb/49/34\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;142;rgb:b8/bb/26\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;214;rgb:fa/bd/2f\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;109;rgb:83/a5/98\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;175;rgb:d3/86/9b\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;108;rgb:8e/c0/7c\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;208;rgb:fe/80/19\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;167;rgb:fb/49/34\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;142;rgb:b8/bb/26\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;214;rgb:fa/bd/2f\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;109;rgb:83/a5/98\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;175;rgb:d3/86/9b\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;108;rgb:8e/c0/7c\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;208;rgb:fe/80/19\007\033\\"
|
||||
|
||||
printf "\033Ptmux;\033\033]4;88;rgb:9d/00/06\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;100;rgb:79/74/0e\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;136;rgb:b5/76/14\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;24;rgb:07/66/78\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;96;rgb:8f/3f/71\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;66;rgb:42/7b/58\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;130;rgb:af/3a/03\007\033\\"
|
||||
else
|
||||
printf "\033P\033]4;236;rgb:32/30/2f\007\033\\"
|
||||
printf "\033P\033]4;234;rgb:1d/20/21\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;88;rgb:9d/00/06\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;100;rgb:79/74/0e\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;136;rgb:b5/76/14\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;24;rgb:07/66/78\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;96;rgb:8f/3f/71\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;66;rgb:42/7b/58\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;130;rgb:af/3a/03\007\033\\"
|
||||
else
|
||||
printf "\033P\033]4;236;rgb:32/30/2f\007\033\\"
|
||||
printf "\033P\033]4;234;rgb:1d/20/21\007\033\\"
|
||||
|
||||
printf "\033P\033]4;235;rgb:28/28/28\007\033\\"
|
||||
printf "\033P\033]4;237;rgb:3c/38/36\007\033\\"
|
||||
printf "\033P\033]4;239;rgb:50/49/45\007\033\\"
|
||||
printf "\033P\033]4;241;rgb:66/5c/54\007\033\\"
|
||||
printf "\033P\033]4;243;rgb:7c/6f/64\007\033\\"
|
||||
printf "\033P\033]4;235;rgb:28/28/28\007\033\\"
|
||||
printf "\033P\033]4;237;rgb:3c/38/36\007\033\\"
|
||||
printf "\033P\033]4;239;rgb:50/49/45\007\033\\"
|
||||
printf "\033P\033]4;241;rgb:66/5c/54\007\033\\"
|
||||
printf "\033P\033]4;243;rgb:7c/6f/64\007\033\\"
|
||||
|
||||
printf "\033P\033]4;244;rgb:92/83/74\007\033\\"
|
||||
printf "\033P\033]4;245;rgb:92/83/74\007\033\\"
|
||||
printf "\033P\033]4;244;rgb:92/83/74\007\033\\"
|
||||
printf "\033P\033]4;245;rgb:92/83/74\007\033\\"
|
||||
|
||||
printf "\033P\033]4;228;rgb:f4/e8/ba\007\033\\"
|
||||
printf "\033P\033]4;230;rgb:ff/ff/c8\007\033\\"
|
||||
printf "\033P\033]4;228;rgb:f2/e5/bc\007\033\\"
|
||||
printf "\033P\033]4;230;rgb:f9/f5/d7\007\033\\"
|
||||
|
||||
printf "\033P\033]4;229;rgb:fd/f4/c1\007\033\\"
|
||||
printf "\033P\033]4;223;rgb:eb/db/b2\007\033\\"
|
||||
printf "\033P\033]4;250;rgb:d5/c4/a1\007\033\\"
|
||||
printf "\033P\033]4;248;rgb:bd/ae/93\007\033\\"
|
||||
printf "\033P\033]4;246;rgb:a8/99/84\007\033\\"
|
||||
printf "\033P\033]4;229;rgb:fb/f1/c7\007\033\\"
|
||||
printf "\033P\033]4;223;rgb:eb/db/b2\007\033\\"
|
||||
printf "\033P\033]4;250;rgb:d5/c4/a1\007\033\\"
|
||||
printf "\033P\033]4;248;rgb:bd/ae/93\007\033\\"
|
||||
printf "\033P\033]4;246;rgb:a8/99/84\007\033\\"
|
||||
|
||||
printf "\033P\033]4;167;rgb:fb/49/34\007\033\\"
|
||||
printf "\033P\033]4;142;rgb:b8/bb/26\007\033\\"
|
||||
printf "\033P\033]4;214;rgb:fa/bd/2f\007\033\\"
|
||||
printf "\033P\033]4;109;rgb:83/a5/98\007\033\\"
|
||||
printf "\033P\033]4;175;rgb:d3/86/9b\007\033\\"
|
||||
printf "\033P\033]4;108;rgb:8e/c0/7c\007\033\\"
|
||||
printf "\033P\033]4;208;rgb:fe/80/19\007\033\\"
|
||||
printf "\033P\033]4;167;rgb:fb/49/34\007\033\\"
|
||||
printf "\033P\033]4;142;rgb:b8/bb/26\007\033\\"
|
||||
printf "\033P\033]4;214;rgb:fa/bd/2f\007\033\\"
|
||||
printf "\033P\033]4;109;rgb:83/a5/98\007\033\\"
|
||||
printf "\033P\033]4;175;rgb:d3/86/9b\007\033\\"
|
||||
printf "\033P\033]4;108;rgb:8e/c0/7c\007\033\\"
|
||||
printf "\033P\033]4;208;rgb:fe/80/19\007\033\\"
|
||||
|
||||
printf "\033P\033]4;88;rgb:9d/00/06\007\033\\"
|
||||
printf "\033P\033]4;100;rgb:79/74/0e\007\033\\"
|
||||
printf "\033P\033]4;136;rgb:b5/76/14\007\033\\"
|
||||
printf "\033P\033]4;24;rgb:07/66/78\007\033\\"
|
||||
printf "\033P\033]4;96;rgb:8f/3f/71\007\033\\"
|
||||
printf "\033P\033]4;66;rgb:42/7b/58\007\033\\"
|
||||
printf "\033P\033]4;130;rgb:af/3a/03\007\033\\"
|
||||
fi
|
||||
else
|
||||
printf "\033]4;236;rgb:32/30/2f\033\\"
|
||||
printf "\033]4;234;rgb:1d/20/21\033\\"
|
||||
printf "\033P\033]4;88;rgb:9d/00/06\007\033\\"
|
||||
printf "\033P\033]4;100;rgb:79/74/0e\007\033\\"
|
||||
printf "\033P\033]4;136;rgb:b5/76/14\007\033\\"
|
||||
printf "\033P\033]4;24;rgb:07/66/78\007\033\\"
|
||||
printf "\033P\033]4;96;rgb:8f/3f/71\007\033\\"
|
||||
printf "\033P\033]4;66;rgb:42/7b/58\007\033\\"
|
||||
printf "\033P\033]4;130;rgb:af/3a/03\007\033\\"
|
||||
fi
|
||||
|
||||
printf "\033]4;235;rgb:28/28/28\033\\"
|
||||
printf "\033]4;237;rgb:3c/38/36\033\\"
|
||||
printf "\033]4;239;rgb:50/49/45\033\\"
|
||||
printf "\033]4;241;rgb:66/5c/54\033\\"
|
||||
printf "\033]4;243;rgb:7c/6f/64\033\\"
|
||||
elif [ "$TERM" != "linux" ] && [ "$TERM" != "vt100" ] && [ "$TERM" != "vt220" ]; then
|
||||
|
||||
printf "\033]4;244;rgb:92/83/74\033\\"
|
||||
printf "\033]4;245;rgb:92/83/74\033\\"
|
||||
printf "\033]4;236;rgb:32/30/2f\033\\"
|
||||
printf "\033]4;234;rgb:1d/20/21\033\\"
|
||||
|
||||
printf "\033]4;228;rgb:f4/e8/ba\033\\"
|
||||
printf "\033]4;230;rgb:ff/ff/c8\033\\"
|
||||
printf "\033]4;235;rgb:28/28/28\033\\"
|
||||
printf "\033]4;237;rgb:3c/38/36\033\\"
|
||||
printf "\033]4;239;rgb:50/49/45\033\\"
|
||||
printf "\033]4;241;rgb:66/5c/54\033\\"
|
||||
printf "\033]4;243;rgb:7c/6f/64\033\\"
|
||||
|
||||
printf "\033]4;229;rgb:fd/f4/c1\033\\"
|
||||
printf "\033]4;223;rgb:eb/db/b2\033\\"
|
||||
printf "\033]4;250;rgb:d5/c4/a1\033\\"
|
||||
printf "\033]4;248;rgb:bd/ae/93\033\\"
|
||||
printf "\033]4;246;rgb:a8/99/84\033\\"
|
||||
printf "\033]4;244;rgb:92/83/74\033\\"
|
||||
printf "\033]4;245;rgb:92/83/74\033\\"
|
||||
|
||||
printf "\033]4;167;rgb:fb/49/34\033\\"
|
||||
printf "\033]4;142;rgb:b8/bb/26\033\\"
|
||||
printf "\033]4;214;rgb:fa/bd/2f\033\\"
|
||||
printf "\033]4;109;rgb:83/a5/98\033\\"
|
||||
printf "\033]4;175;rgb:d3/86/9b\033\\"
|
||||
printf "\033]4;108;rgb:8e/c0/7c\033\\"
|
||||
printf "\033]4;208;rgb:fe/80/19\033\\"
|
||||
printf "\033]4;228;rgb:f2/e5/bc\033\\"
|
||||
printf "\033]4;230;rgb:f9/f5/d7\033\\"
|
||||
|
||||
printf "\033]4;88;rgb:9d/00/06\033\\"
|
||||
printf "\033]4;100;rgb:79/74/0e\033\\"
|
||||
printf "\033]4;136;rgb:b5/76/14\033\\"
|
||||
printf "\033]4;24;rgb:07/66/78\033\\"
|
||||
printf "\033]4;96;rgb:8f/3f/71\033\\"
|
||||
printf "\033]4;66;rgb:42/7b/58\033\\"
|
||||
printf "\033]4;130;rgb:af/3a/03\033\\"
|
||||
printf "\033]4;229;rgb:fb/f1/c7\033\\"
|
||||
printf "\033]4;223;rgb:eb/db/b2\033\\"
|
||||
printf "\033]4;250;rgb:d5/c4/a1\033\\"
|
||||
printf "\033]4;248;rgb:bd/ae/93\033\\"
|
||||
printf "\033]4;246;rgb:a8/99/84\033\\"
|
||||
|
||||
printf "\033]4;167;rgb:fb/49/34\033\\"
|
||||
printf "\033]4;142;rgb:b8/bb/26\033\\"
|
||||
printf "\033]4;214;rgb:fa/bd/2f\033\\"
|
||||
printf "\033]4;109;rgb:83/a5/98\033\\"
|
||||
printf "\033]4;175;rgb:d3/86/9b\033\\"
|
||||
printf "\033]4;108;rgb:8e/c0/7c\033\\"
|
||||
printf "\033]4;208;rgb:fe/80/19\033\\"
|
||||
|
||||
printf "\033]4;88;rgb:9d/00/06\033\\"
|
||||
printf "\033]4;100;rgb:79/74/0e\033\\"
|
||||
printf "\033]4;136;rgb:b5/76/14\033\\"
|
||||
printf "\033]4;24;rgb:07/66/78\033\\"
|
||||
printf "\033]4;96;rgb:8f/3f/71\033\\"
|
||||
printf "\033]4;66;rgb:42/7b/58\033\\"
|
||||
printf "\033]4;130;rgb:af/3a/03\033\\"
|
||||
fi
|
||||
|
||||
@@ -1,116 +1,116 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "${TERM%%-*}" = "screen" ]; then
|
||||
if [ -n "$TMUX" ]; then
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;236;rgb:32/30/2f\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;234;rgb:1d/20/21\a\x1b\\"
|
||||
if [ -n "$TMUX" ]; then
|
||||
printf "\033Ptmux;\033\033]4;236;rgb:26/24/23\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;234;rgb:16/18/19\007\033\\"
|
||||
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;235;rgb:28/28/28\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;237;rgb:3c/38/36\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;239;rgb:50/49/45\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;241;rgb:66/5c/54\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;243;rgb:7c/6f/64\a\x1b\\"
|
||||
printf "\033Ptmux;\033\033]4;235;rgb:1e/1e/1e\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;237;rgb:2e/2a/29\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;239;rgb:3f/39/35\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;241;rgb:53/4a/42\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;243;rgb:68/5c/51\007\033\\"
|
||||
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;244;rgb:92/83/74\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;245;rgb:92/83/74\a\x1b\\"
|
||||
printf "\033Ptmux;\033\033]4;244;rgb:7f/70/61\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;245;rgb:7f/70/61\007\033\\"
|
||||
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;228;rgb:f4/e8/ba\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;230;rgb:ff/ff/c8\a\x1b\\"
|
||||
printf "\033Ptmux;\033\033]4;228;rgb:ef/df/ae\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;230;rgb:f8/f4/cd\007\033\\"
|
||||
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;229;rgb:fd/f4/c1\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;223;rgb:eb/db/b2\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;250;rgb:d5/c4/a1\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;248;rgb:bd/ae/93\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;246;rgb:a8/99/84\a\x1b\\"
|
||||
printf "\033Ptmux;\033\033]4;229;rgb:fa/ee/bb\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;223;rgb:e6/d4/a3\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;250;rgb:cb/b8/90\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;248;rgb:af/9f/81\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;246;rgb:97/87/71\007\033\\"
|
||||
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;167;rgb:fb/49/34\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;142;rgb:b8/bb/26\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;214;rgb:fa/bd/2f\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;109;rgb:83/a5/98\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;175;rgb:d3/86/9b\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;108;rgb:8e/c0/7c\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;208;rgb:fe/80/19\a\x1b\\"
|
||||
printf "\033Ptmux;\033\033]4;167;rgb:f7/30/28\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;142;rgb:aa/b0/1e\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;214;rgb:f7/b1/25\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;109;rgb:71/95/86\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;175;rgb:c7/70/89\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;108;rgb:7d/b6/69\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;208;rgb:fb/6a/16\007\033\\"
|
||||
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;88;rgb:9d/00/06\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;100;rgb:79/74/0e\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;136;rgb:b5/76/14\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;24;rgb:07/66/78\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;96;rgb:8f/3f/71\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;66;rgb:42/7b/58\a\x1b\\"
|
||||
echo -ne "\x1bPtmux;\x1b\x1b]4;130;rgb:af/3a/03\a\x1b\\"
|
||||
else
|
||||
echo -ne "\x1bP\x1b]4;236;rgb:32/30/2f\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;234;rgb:1d/20/21\a\x1b\\"
|
||||
printf "\033Ptmux;\033\033]4;88;rgb:89/00/09\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;100;rgb:66/62/0d\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;136;rgb:a5/63/11\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;24;rgb:0e/53/65\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;96;rgb:7b/2b/5e\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;66;rgb:35/6a/46\007\033\\"
|
||||
printf "\033Ptmux;\033\033]4;130;rgb:9d/28/07\007\033\\"
|
||||
else
|
||||
printf "\033P\033]4;236;rgb:26/24/23\007\033\\"
|
||||
printf "\033P\033]4;234;rgb:16/18/19\007\033\\"
|
||||
|
||||
echo -ne "\x1bP\x1b]4;235;rgb:28/28/28\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;237;rgb:3c/38/36\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;239;rgb:50/49/45\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;241;rgb:66/5c/54\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;243;rgb:7c/6f/64\a\x1b\\"
|
||||
printf "\033P\033]4;235;rgb:1e/1e/1e\007\033\\"
|
||||
printf "\033P\033]4;237;rgb:2e/2a/29\007\033\\"
|
||||
printf "\033P\033]4;239;rgb:3f/39/35\007\033\\"
|
||||
printf "\033P\033]4;241;rgb:53/4a/42\007\033\\"
|
||||
printf "\033P\033]4;243;rgb:68/5c/51\007\033\\"
|
||||
|
||||
echo -ne "\x1bP\x1b]4;244;rgb:92/83/74\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;245;rgb:92/83/74\a\x1b\\"
|
||||
printf "\033P\033]4;244;rgb:7f/70/61\007\033\\"
|
||||
printf "\033P\033]4;245;rgb:7f/70/61\007\033\\"
|
||||
|
||||
echo -ne "\x1bP\x1b]4;228;rgb:f4/e8/ba\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;230;rgb:ff/ff/c8\a\x1b\\"
|
||||
printf "\033P\033]4;228;rgb:ef/df/ae\007\033\\"
|
||||
printf "\033P\033]4;230;rgb:f8/f4/cd\007\033\\"
|
||||
|
||||
echo -ne "\x1bP\x1b]4;229;rgb:fd/f4/c1\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;223;rgb:eb/db/b2\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;250;rgb:d5/c4/a1\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;248;rgb:bd/ae/93\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;246;rgb:a8/99/84\a\x1b\\"
|
||||
printf "\033P\033]4;229;rgb:fa/ee/bb\007\033\\"
|
||||
printf "\033P\033]4;223;rgb:e6/d4/a3\007\033\\"
|
||||
printf "\033P\033]4;250;rgb:cb/b8/90\007\033\\"
|
||||
printf "\033P\033]4;248;rgb:af/9f/81\007\033\\"
|
||||
printf "\033P\033]4;246;rgb:97/87/71\007\033\\"
|
||||
|
||||
echo -ne "\x1bP\x1b]4;167;rgb:fb/49/34\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;142;rgb:b8/bb/26\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;214;rgb:fa/bd/2f\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;109;rgb:83/a5/98\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;175;rgb:d3/86/9b\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;108;rgb:8e/c0/7c\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;208;rgb:fe/80/19\a\x1b\\"
|
||||
printf "\033P\033]4;167;rgb:f7/30/28\007\033\\"
|
||||
printf "\033P\033]4;142;rgb:aa/b0/1e\007\033\\"
|
||||
printf "\033P\033]4;214;rgb:f7/b1/25\007\033\\"
|
||||
printf "\033P\033]4;109;rgb:71/95/86\007\033\\"
|
||||
printf "\033P\033]4;175;rgb:c7/70/89\007\033\\"
|
||||
printf "\033P\033]4;108;rgb:7d/b6/69\007\033\\"
|
||||
printf "\033P\033]4;208;rgb:fb/6a/16\007\033\\"
|
||||
|
||||
echo -ne "\x1bP\x1b]4;88;rgb:9d/00/06\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;100;rgb:79/74/0e\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;136;rgb:b5/76/14\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;24;rgb:07/66/78\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;96;rgb:8f/3f/71\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;66;rgb:42/7b/58\a\x1b\\"
|
||||
echo -ne "\x1bP\x1b]4;130;rgb:af/3a/03\a\x1b\\"
|
||||
fi
|
||||
printf "\033P\033]4;88;rgb:89/00/09\007\033\\"
|
||||
printf "\033P\033]4;100;rgb:66/62/0d\007\033\\"
|
||||
printf "\033P\033]4;136;rgb:a5/63/11\007\033\\"
|
||||
printf "\033P\033]4;24;rgb:0e/53/65\007\033\\"
|
||||
printf "\033P\033]4;96;rgb:7b/2b/5e\007\033\\"
|
||||
printf "\033P\033]4;66;rgb:35/6a/46\007\033\\"
|
||||
printf "\033P\033]4;130;rgb:9d/28/07\007\033\\"
|
||||
fi
|
||||
else
|
||||
echo -ne "\x1b]4;236;rgb:32/30/2f\x1b\\"
|
||||
echo -ne "\x1b]4;234;rgb:1d/20/21\x1b\\"
|
||||
printf "\033]4;236;rgb:26/24/23\033\\"
|
||||
printf "\033]4;234;rgb:16/18/19\033\\"
|
||||
|
||||
echo -ne "\x1b]4;235;rgb:28/28/28\x1b\\"
|
||||
echo -ne "\x1b]4;237;rgb:3c/38/36\x1b\\"
|
||||
echo -ne "\x1b]4;239;rgb:50/49/45\x1b\\"
|
||||
echo -ne "\x1b]4;241;rgb:66/5c/54\x1b\\"
|
||||
echo -ne "\x1b]4;243;rgb:7c/6f/64\x1b\\"
|
||||
printf "\033]4;235;rgb:1e/1e/1e\033\\"
|
||||
printf "\033]4;237;rgb:2e/2a/29\033\\"
|
||||
printf "\033]4;239;rgb:3f/39/35\033\\"
|
||||
printf "\033]4;241;rgb:53/4a/42\033\\"
|
||||
printf "\033]4;243;rgb:68/5c/51\033\\"
|
||||
|
||||
echo -ne "\x1b]4;244;rgb:92/83/74\x1b\\"
|
||||
echo -ne "\x1b]4;245;rgb:92/83/74\x1b\\"
|
||||
printf "\033]4;244;rgb:7f/70/61\033\\"
|
||||
printf "\033]4;245;rgb:7f/70/61\033\\"
|
||||
|
||||
echo -ne "\x1b]4;228;rgb:f4/e8/ba\x1b\\"
|
||||
echo -ne "\x1b]4;230;rgb:ff/ff/c8\x1b\\"
|
||||
printf "\033]4;228;rgb:ef/df/ae\033\\"
|
||||
printf "\033]4;230;rgb:f8/f4/cd\033\\"
|
||||
|
||||
echo -ne "\x1b]4;229;rgb:fd/f4/c1\x1b\\"
|
||||
echo -ne "\x1b]4;223;rgb:eb/db/b2\x1b\\"
|
||||
echo -ne "\x1b]4;250;rgb:d5/c4/a1\x1b\\"
|
||||
echo -ne "\x1b]4;248;rgb:bd/ae/93\x1b\\"
|
||||
echo -ne "\x1b]4;246;rgb:a8/99/84\x1b\\"
|
||||
printf "\033]4;229;rgb:fa/ee/bb\033\\"
|
||||
printf "\033]4;223;rgb:e6/d4/a3\033\\"
|
||||
printf "\033]4;250;rgb:cb/b8/90\033\\"
|
||||
printf "\033]4;248;rgb:af/9f/81\033\\"
|
||||
printf "\033]4;246;rgb:97/87/71\033\\"
|
||||
|
||||
echo -ne "\x1b]4;167;rgb:fb/49/34\x1b\\"
|
||||
echo -ne "\x1b]4;142;rgb:b8/bb/26\x1b\\"
|
||||
echo -ne "\x1b]4;214;rgb:fa/bd/2f\x1b\\"
|
||||
echo -ne "\x1b]4;109;rgb:83/a5/98\x1b\\"
|
||||
echo -ne "\x1b]4;175;rgb:d3/86/9b\x1b\\"
|
||||
echo -ne "\x1b]4;108;rgb:8e/c0/7c\x1b\\"
|
||||
echo -ne "\x1b]4;208;rgb:fe/80/19\x1b\\"
|
||||
printf "\033]4;167;rgb:f7/30/28\033\\"
|
||||
printf "\033]4;142;rgb:aa/b0/1e\033\\"
|
||||
printf "\033]4;214;rgb:f7/b1/25\033\\"
|
||||
printf "\033]4;109;rgb:71/95/86\033\\"
|
||||
printf "\033]4;175;rgb:c7/70/89\033\\"
|
||||
printf "\033]4;108;rgb:7d/b6/69\033\\"
|
||||
printf "\033]4;208;rgb:fb/6a/16\033\\"
|
||||
|
||||
echo -ne "\x1b]4;88;rgb:9d/00/06\x1b\\"
|
||||
echo -ne "\x1b]4;100;rgb:79/74/0e\x1b\\"
|
||||
echo -ne "\x1b]4;136;rgb:b5/76/14\x1b\\"
|
||||
echo -ne "\x1b]4;24;rgb:07/66/78\x1b\\"
|
||||
echo -ne "\x1b]4;96;rgb:8f/3f/71\x1b\\"
|
||||
echo -ne "\x1b]4;66;rgb:42/7b/58\x1b\\"
|
||||
echo -ne "\x1b]4;130;rgb:af/3a/03\x1b\\"
|
||||
printf "\033]4;88;rgb:89/00/09\033\\"
|
||||
printf "\033]4;100;rgb:66/62/0d\033\\"
|
||||
printf "\033]4;136;rgb:a5/63/11\033\\"
|
||||
printf "\033]4;24;rgb:0e/53/65\033\\"
|
||||
printf "\033]4;96;rgb:7b/2b/5e\033\\"
|
||||
printf "\033]4;66;rgb:35/6a/46\033\\"
|
||||
printf "\033]4;130;rgb:9d/28/07\033\\"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user