这是我的 .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 中添加以下行吗?
设置背景=深色
关于vim - 为什么我安装的插件 'gruvbox' 不显示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53945787/