rakr / vim-one

Adaptation of one-light and one-dark colorschemes for Vim
MIT License
1.99k stars 196 forks source link

reloading init.vim swaps colors #51

Closed adamki closed 7 years ago

adamki commented 7 years ago

I have noticed that the colors rendered can change after the event of a reloading .config/nvim/init.vim.

Here, I am using the following lines in my init.vim file:

  call dein#add('rakr/vim-one')

  syntax on
  colorscheme one
  set background=dark
  let g:one_allow_italics = 1

  let g:airline_theme='one'

I am using neovim and iTerm 2. True colors has been set via set termguicolors in neovim config.

I've included a screen share of the issue. Please let me know if more info is needed: may-30-2017 15-52-24

rakr commented 7 years ago

Hi Adam,

If you swap your background and colorscheme lines this should solve your problem, like below

call dein#add('rakr/vim-one')

  syntax on
  set background=dark
  colorscheme one
  let g:one_allow_italics = 1

  let g:airline_theme='one'

This is a known issue with Vim.

adamki commented 7 years ago

Most excellent! Thanks @rakr. things are looking great.