Closed jimzenn closed 8 years ago
What happens if you omit the set t_Co=256
line?
All of the g:onedark
variable declarations need to appear before the colorscheme onedark
line for them to have any effect.
You also shouldn't need to set g:onedark_termcolors
at all, since 256 is the default.
Thanks for your help.
I tried everything I can. It just don't work. Don't work in both Mac Terminal and iterm2. Don't work with MacVim or NeoVim. It only works in MacVim GUI. However, Terminal and iTerm2 do have the same wrong scheme.
Not only this color schemes, none of the color schemes except solarized works the exact way as the preview pics. There are always an apparent difference. Even those Base 16 schemes do not work correctly.
My iterm2 is set to xterm-256. Any idea how this happens?
Oh... Finally I got the solution! neoVim has an option: let $NVIM_TUI_ENABLE_TRUE_COLOR=1 and it solves everything.
Though I don't know what this is but it's great!
Thanks anyway :P
Glad you figured it out!
Hey @joshdick ! I installed One Dark.itermcolors, and set the theme to use terminal's color. bui i still cant get the color right.
my config:
syntax enable
let g:onedark_termcolors=16
colorscheme onedark
set background=dark
any idea where i did wrong? thanks.
@Jim-Zenn I also tried let $NVIM_TUI_ENABLE_TRUE_COLOR=1
as im using neovim, but it didnt work for me. can i see your config regarding to the theme if possible?
The colors themselves look correct, but if you're wondering why the highlighting doesn't look exactly like it does in my screenshot, it's because I'm using the othree/yajs.vim plugin which has better JavaScript highlighting than stock Vim.
got it. thanks for the help!
I had to remove the set background=dark
for the theme to work. Without it it looks fine
I installed the scheme with iTerm2 and MacVim. In GVim it works well. However, it don't work in iTerm2 as it should. Here's the relevant code in ~/.vimrc