support color fix/mute in cterm

This commit is contained in:
Reed Esau
2014-01-01 03:31:42 -07:00
parent e11ee59ab6
commit 1168d4f689
2 changed files with 14 additions and 15 deletions

View File

@@ -12,8 +12,8 @@
## Why thematic? ## Why thematic?
You may be among the many Vim users who keep things simple by sticking You may be among the many Vim users who keep things simple by sticking
with a single theme that suits their needs, configuring it in their `.vimrc` with a single theme that suits their needs, configuring it in their
by setting the color scheme, font and status line. `.vimrc` by setting the color scheme, font and status line.
Or you might instead be among the users who instead configure the visual Or you might instead be among the users who instead configure the visual
details of Vim to match the lighting conditions or task at hand, or even details of Vim to match the lighting conditions or task at hand, or even
@@ -130,8 +130,9 @@ For console or GUI Vim:
* `fold-column-color-mute` - temporarily modifies colorscheme to hide * `fold-column-color-mute` - temporarily modifies colorscheme to hide
indicators in foldcolumn indicators in foldcolumn
For GUI-based options, see the `vim-thematic-gui` plugin. Heres For GUI-based options, see the
a summary: [vim-thematic-gui](https://github.com/reedes/vim-thematic-gui) plugin.
Heres a summary:
* `typeface`, `font-size`, and `linespace` - be specific about typography * `typeface`, `font-size`, and `linespace` - be specific about typography
* `fullscreen` and `fullscreen-background-color-fix` - force a switch to * `fullscreen` and `fullscreen-background-color-fix` - force a switch to
@@ -141,7 +142,7 @@ a summary:
## FAQ ## FAQ
### Q: I want to set `cursorline`, `wrap`, `textwidth`, etc. in my themes. ### Q: I want to set `cursorline`, `wrap`, `textwidth`, `foldcolumn`, etc. in my themes.
thematic focuses exclusively on global settings. The settings above are thematic focuses exclusively on global settings. The settings above are
not globally-scoped but are instead scoped to individual buffers and not globally-scoped but are instead scoped to individual buffers and
@@ -219,7 +220,7 @@ If you like this plugin, you might like these others from the same author:
## Future development ## Future development
If you have any ideas on improving this plugin, please post them to the github If you have any ideas on improving this plugin, please post them to the
project issue page. github project issue page.
<!-- vim: set tw=74 :--> <!-- vim: set tw=74 :-->

View File

@@ -141,22 +141,20 @@ function! thematic#init(mode)
if thematic#getThemeValue(l:th, 'sign-column-color-fix', 0) if thematic#getThemeValue(l:th, 'sign-column-color-fix', 0)
" Ensure the gutter matches the text background " Ensure the gutter matches the text background
" TODO how about match the number background? hi! SignColumn guifg=fg guibg=bg ctermfg=fg ctermbg=bg
hi! SignColumn guifg=fg guibg=bg
endif endif
if thematic#getThemeValue(l:th, 'diff-color-fix', 0) if thematic#getThemeValue(l:th, 'diff-color-fix', 0)
" Override diff colors " Override diff colors
" TODO figure out what to do for cterm hi! DiffAdd guifg=darkgreen guibg=bg cterm=bold ctermbg=bg ctermfg=119
hi! DiffAdd guifg=darkgreen guibg=bg "cterm=bold ctermbg=237 ctermfg=119 hi! DiffDelete guifg=darkorange guibg=bg cterm=bold ctermbg=bg ctermfg=167
hi! DiffDelete guifg=darkorange guibg=bg "cterm=bold ctermbg=237 ctermfg=167 hi! DiffChange guifg=darkyellow guibg=bg cterm=bold ctermbg=bg ctermfg=227
hi! DiffChange guifg=darkyellow guibg=bg "cterm=bold ctermbg=237 ctermfg=227 hi! DiffText guifg=fg guibg=bg cterm=none ctermbg=fg ctermfg=fg
hi! DiffText guifg=fg guibg=bg
endif endif
if thematic#getThemeValue(l:th, 'fold-column-color-mute', 0) if thematic#getThemeValue(l:th, 'fold-column-color-mute', 0)
" Ensure the fold column is blank, for non-distracted editing " Ensure the fold column is blank, for non-distracted editing
hi! FoldColumn guifg=bg guibg=bg cterm=none ctermbg=none ctermfg=none hi! FoldColumn guifg=bg guibg=bg cterm=bold ctermbg=bg ctermfg=bg
endif endif
" ------ Set sign column for all buffers ------ " ------ Set sign column for all buffers ------