Fixed the VIM Background Color on Mac
Adam C. |

I set the VIM background as dark color on Mac since I set it up, but recently it's changed to white. After some investigation, I found that the color files are missing.

Photo by Luca Bravo on Unsplash

First of all, here is my ~/vimrc file looks like:

syntax on
colorscheme delek
set tabstop=2

I don't remember how I set up ‘delek’ theme. The background of ‘vim’ was changed to white recently, I did not realize that the ‘color’ files are missing. I thought it came with the ‘vim’ package.

I guess the recent Mac update removed those files.

Anyway, here is how to fix it.

  1. Create a folder named ‘.vim’ under your home directly if you don't have one. In my case, I have an empty one.
  2. Download the color files, and the easy way is just to clone the, and then copy the folder under ~/vim

Here are some commands FYI:

mkdir ~/.vim
cd ~/.vim
git clone
cd vim-colorschemes
cp -r colors ~/.vim/.

That will fix it.