为什么我安装的插件 'gruvbox' 不显示?

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

这是我的 .vimrc 文件:

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

使用 vim 打开文件没问题,但是当输入 > vim example.txt 时不显示 gruvbox colorscheme,我正在使用 windows,如何解决?

根据你的问题我了解到,你可以在 gvim 中打开一个文件,但不能从终端打开颜色方案? Gruvbox 有浅色和深色两种模式。可能是 gvim 默认使用暗模式,而终端在亮模式下运行。你会尝试将以下行添加到你的 .vimrc 中吗?

set background=dark