iterm2 vim 8.1 color weird
docoder opened this issue · comments
iterm2 3.3.9
I am unable to reproduce this with the same versions of iTerm2 and Vim. Some follow-up questions:
- Are you using tmux?
- Have you tried finding the minimal repro case by removing other things in your Vim config?
Since I'm unable to reproduce, would appreciate if someone could figure out repro steps.
I reinstalled iTerm and Vim. Didn't fix it.
But I nuked my ~/.vim
directory and started over which solved the problem for me.
I had a feeling it was something to do with vim-plug
but I have no idea.
Thanks. My issue has been solved.
@reidcooper can you make a repo with working config?
here is my example config:
https://github.com/gko/vimrc-material-example
works perfectly with neovim
but for some reason not with vim (iterm
or terminal
)
tried both importing colors into iterm and without importing them.
.zshrc
add
alias vim='/Applications/MacVim.app/Contents/MacOS/Vim'
fixed it
vim version 8.2.319
vim
in macOS doesn't support termguicolors
.
So there are three options:
- update vim to 8.2 and get the support in
iTerm 2
- add
cterm
support in color theme (added draft #41) - check for
termguicolors
support and set a fallback theme like here:
https://github.com/gko/vimio/blob/master/.vimrc_background#L17-L27
Please see the readme. Information about true colors can be found here.
@kaicataldo I know, I just summed it up for the people that will come across this issue
Thanks, appreciated :)
Closing since this has been resolved.