Vim 为什么';t我安装的插件';gruvbox';展示?

Vim 为什么';t我安装的插件';gruvbox';展示?,vim,plugins,color-scheme,vundle,Vim,Plugins,Color Scheme,Vundle,这是我的.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/') " le

这是我的.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中打开一个文件,但不能从终端打开colorscheme?Gruvbox有两种模式,即亮模式和暗模式。可能是gvim在默认情况下使用暗模式,而终端在亮模式下运行。请尝试将下面的行添加到.vimrc中好吗


set background=dark

默认情况下,文本文件几乎没有颜色:没有要突出显示的语法元素。尝试编辑一些代码(根据您的偏好,您可能还需要在上使用
语法)。我假设“不显示gruvbox colorscheme”,你的意思是“文本没有突出显示”,而不是“没有适当突出显示编辑器的元素”不,这是背景色和gruvbox中的所有内容,我实际上启用了语法,但这不是问题,所以我没有发布它。感谢您的回答我建议您回答问题,以准确解释您的问题。@D.BenKnoble好的,谢谢,伊玛,请尽快回答