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?
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