Skip to content

Commit

Permalink
fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
iCyMind committed Sep 28, 2016
1 parent 90fa7db commit c9227fa
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 30 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2011 Ethan Schoonover
Copyright (c) 2011 Ethan Schoonover
Copyright (c) 2016 iCyMind

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
65 changes: 45 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,57 @@
# NeoSolarized
Another solarized color theme for truecolor vim.
![Screenshot]("./screenshot/neosolarized-terminal.jpg")
![Screenshot](http://ww3.sinaimg.cn/large/5d4db8f9gw1f88o0e8r6mj21kw11hqcx.jpg)
Fork from [vim-colors-solarized](), Featrues:
- truecolor support for neovim/vim terminal
- Neomake signs support
- Gitgutter sign support
- Signature signs support
- [Neomake](https://github.com/neomake/neomake) signs support
- [gitgutter](https://github.com/airblade/vim-gitgutter) signs support
- [signature](https://github.com/kshenoy/vim-signature) signs support

### Requirements
- Truecolor:
- [terminal]() which support truecolor
- 256colors
- [terminal](https://gist.github.com/XVilka/8346728) which support truecolor
- neovim or Gvim/MacVim or vim ≥ 7.4.1799
- `set termguicolors` in your init.vim/.vimrc

### Installation
##### Manual install
- Manual install
Move NeoSolarized.vim to your vim RunTimePath directory:

```bash
cd NeoSolarized/colors
mv NeoSolarized.vim ~/.config/nvim/colors/
```
or
```bash
cd NeoSolarized/colors
mv NeoSolarized.vim ~/.vim/colors/
```
- Plugin managers: [vim-plug](https://github.com/junegunn/vim-plu://github.com/junegunn/vim-plug):
- add `Plug 'iCyMind/NeoSolarized'` to your init.vim or .vimrc file
- run `:PluginInstall` after resource/relaunch

### Info
##### truecolor test
You can run this scrip to test if your terminal has support. If the colors smoothly blend, then you know that you have True Color support.
```bash
cd NeoSolarized/colors
mv NeoSolarized.vim ~/.config/nvim/colors/
```
or
```bash
cd NeoSolarized/colors
mv NeoSolarized.vim ~/.vim/colors/
awk 'BEGIN{
s="/\\/\\/\\/\\/\\"; s=s s s s s s s s;
for (colnum = 0; colnum<77; colnum++) {
r = 255-(colnum*255/76);
g = (colnum*510/76);
b = (colnum*255/76);
if (g>255) g = 510-g;
printf "\033[48;2;%d;%d;%dm", r,g,b;
printf "\033[38;2;%d;%d;%dm", 255-r,255-g,255-b;
printf "%s\033[0m", substr(s,colnum+1,1);
}
printf "\n";
}'
```
#### By Plugin managers
[vim-plug](https://github.com/junegunn/vim-plu://github.com/junegunn/vim-plug):
- add `Plug 'iCyMind/NeoSolarized'` to your init.vim or .vimrc file
- run `:PluginInstall` after resource/relaunch
#### tmux
Currently, vim can not work well in tmux. But neovim works perfect.
If you meet a color issue when using tmux. Make sure:
- using lastest tmux (v2.2)
- your $TERM variable set to "xterm-256color"
- add `set-option -ga terminal-overrides ",xterm-256color:Tc"` to your .tmux.conf file.

### Screenshot
see this [article](https://deductivelabs.com/en/2016/03/using-true-color-vim-tmux/) for more tmux detail.
4 changes: 0 additions & 4 deletions TODO.md

This file was deleted.

9 changes: 4 additions & 5 deletions colors/NeoSolarized.vim
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,7 @@ exe "let s:fmt_revb = ' " . "gui=NONE".s:r.s:b . " cterm=NONE".s:r.s:
exe "let s:fmt_revbb = ' " . "gui=NONE".s:r.s:bb . " cterm=NONE".s:r.s:bb . "'"
exe "let s:fmt_revbbu = ' " . "gui=NONE".s:r.s:bb.s:u . " cterm=NONE".s:r.s:bb.s:u . "'"

" if has("gui_running")
if has("termguicolors") && &termguicolors
if has("gui_running") || has("termguicolors") && &termguicolors
exe "let s:sp_none = ' guisp=" . s:gui_none . "'"
exe "let s:sp_back = ' guisp=" . s:gui_back . "'"
exe "let s:sp_base03 = ' guisp=" . s:gui_base03 . "'"
Expand Down Expand Up @@ -584,9 +583,9 @@ exe "hi! ModeMsg" .s:fmt_none .s:fg_blue .s:bg_none
exe "hi! LineNr" .s:fmt_none .s:fg_base01 .s:bg_base02
exe "hi! Question" .s:fmt_bold .s:fg_cyan .s:bg_none
" if ( has("gui_running") || &t_Co > 8 )
exe "hi! VertSplit" ." gui=NONE " ."guifg=".s:gui_base00 ." guibg=".s:gui_base00
" exe "hi! VertSplit" ." gui=NONE " ."guifg=".s:gui_base00 ." guibg=".s:gui_base00
" exe "hi! VertSplit" .s:fmt_none .s:fg_base00 .s:bg_base00
" exe "hi! VertSplit" .s:fmt_none .s:fg_base00 .s:bg_none
exe "hi! VertSplit" .s:fmt_none .s:fg_base00 .s:bg_none
" else
" exe "hi! VertSplit" .s:fmt_revbb .s:fg_base00 .s:bg_base02
" endif
Expand Down Expand Up @@ -1103,5 +1102,5 @@ autocmd ColorScheme * if g:colors_name != "solarized" | silent! aunmenu Solarize
" OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
" THE SOFTWARE.
"
" vim:foldmethod=marker:foldlevel=0
" vim: set foldmethod=marker foldlevel=0:
"}}}
Binary file removed screenshot/neosolarized-terminal.jpg
Binary file not shown.

0 comments on commit c9227fa

Please sign in to comment.