qvacua / vimr

VimR — Neovim GUI for macOS in Swift
https://twitter.com/VimRefined
MIT License
6.67k stars 219 forks source link

PaperColor colorscheme broken on VimR #728

Open jvoegele opened 5 years ago

jvoegele commented 5 years ago

I use the PaperColor colorscheme for Vim. Although this colorscheme works perfectly in terminal Neovim as well as in terminal Vim and MacVim, it does not work at all in VimR for some reason, as can be seen in the screenshots below.

Terminal Neovim:

Screenshot 2019-05-21 10 17 34

MacVim:

Screenshot 2019-05-21 10 15 55

VimR:

Screenshot 2019-05-21 10 14 52

Those screenshots also show the Vim configuration that I am using, but I'll go ahead and provide it in text for better readability:

set nocompatible

" ===== Begin Vundle setup
filetype off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'

Plugin 'NLKNguyen/papercolor-theme'

call vundle#end()            " required
filetype plugin indent on    " required
" ===== End Vundle setup

syntax on
set encoding=utf-8
set background=dark
colorscheme PaperColor
"autocmd VimEnter * set background=dark | colorscheme PaperColor

Note the commented-out autocmd, which was my attempt at getting the colorscheme to load after VimR had completely loaded itself, but this did not work either.

Is there anything I can do to get PaperColor working with VimR?

powelleric commented 5 years ago

I'm not having that experience actually. My papercolor theme is installed via vim-colorschemes plugin, I think.

image

jvoegele commented 5 years ago

I'm not having that experience actually. My papercolor theme is installed via vim-colorschemes plugin, I think.

@powelleric Installing PaperColor via vim-colorschemes has fixed this issue for me. I'm not sure why using the NLKNguyen/papercolor-theme doesn't work, though.

PrestonKnopp commented 5 years ago

papercolor-theme will work if you have set termguicolors. I'm not sure why vim-colorschemes works either.

Try adding this to your config:

if match(expand('$VIM'), 'VimR.app') > -1
    " set true color
    set termguicolors
endif
grem11n commented 4 years ago

For me the solution came from the combination of workarounds mentioned here and in https://github.com/qvacua/vimr/issues/657

I've added the code bloe into my config and it works fine now:

if has("gui_vimr")
  set termguicolors
  set background=dark
  colorscheme PaperColor
endif