-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
iCyMind
committed
Sep 28, 2016
1 parent
90fa7db
commit c9227fa
Showing
5 changed files
with
50 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.