Why doesn't my installed plugin 'gruvbox' display?

4.8k Views Asked by At

Here's my .vimrc file:

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=$HOME/.vim/bundle/Vundle.vim/
call vundle#begin('$HOME/.vim/bundle/')

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

" Plugin gruvbox
Plugin 'morhetz/gruvbox'

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required

colorscheme gruvbox

Opening the file using vim is okay, but when typing > vim example.txt doesn't display gruvbox colorscheme, I'm using windows, how to fix it?

1

There are 1 best solutions below

0
murateca On BEST ANSWER

As I understand from your question, you can open a file in gvim with the colorscheme on but not from terminal? Gruvbox has two modes as light and dark. It could be that gvim uses dark mode by default while terminal runs on light mode. Would you try adding below line to your .vimrc?

set background=dark