Add iTerm2 16-color palette and update README.md accordingly.

This commit is contained in:
Josh Dick
2015-11-21 16:46:56 -05:00
parent 1f97b73021
commit a996ec62d6
2 changed files with 355 additions and 1 deletions

View File

@@ -19,10 +19,20 @@ Place `onedark.vim` in your `~/.vim/colors/` directory either manually or by usi
## Options
* `g:onedark_termcolors`: Set to `256` for 256-color terminals (the default), or set to `16` to use your terminal emulator's native colors. A 16-color palette for this theme is not available yet.
* `g:onedark_termcolors`: Set to `256` for 256-color terminals (the default), or set to `16` to use your terminal emulator's native colors (see below).
* `g:onedark_terminal_italics`: Set to `1` if your terminal emulator supports italics; `0` otherwise (the default).
## 16-Color Mode
Setting `g:onedark_termcolors=16` will cause the theme to use your terminal emulator's native 16 colors.
This theme looks best in 16-color mode **when using its custom 16-color palette**. If you don't use the custom 16-color palette in your terminal emulator while 16-color mode is enabled, the theme's colors will not display correctly.
The canonical version of the 16-color palette is an [iTerm2](https://iterm2.com) color scheme called `One Dark.itermcolors`, which lives in the root of this repository.
You should be able to easily convert the iTerm2 color scheme for use with your terminal emulator of choice by using a tool like [termcolors](https://github.com/stayradiated/termcolors).
## vim-airline Theme
A companion [vim-airline](https://github.com/bling/vim-airline) theme for this theme is available at [joshdick/airline-onedark.vim](https://github.com/joshdick/airline-onedark.vim).