From 2abd0f929453e026f6fc16a0e527dbc75bb398db Mon Sep 17 00:00:00 2001 From: Saeid Saati Date: Mon, 4 May 2020 14:58:34 +0430 Subject: [PATCH] Hi, my gvim says can't find the gruvbox, I'm using gvim with Plug, so I suggest a very simple solution for this --- Installation.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Installation.md b/Installation.md index 314401a..763d96b 100644 --- a/Installation.md +++ b/Installation.md @@ -14,7 +14,8 @@ First of all let's start with basics. Pick your favorite plugin manager: [Pathog + `git clone https://github.com/morhetz/gruvbox.git ~/.vim/pack/default/start/gruvbox` -Then add the line `colorscheme gruvbox` to your .vimrc file, and restart vim. If you are using a plugin manager like Vundle, make sure this setting is after the plugin initialization section. +Then add the line `autocmd vimenter * colorscheme gruvbox` to your .vimrc file, and restart vim. If you are using a plugin manager like Vundle, make sure this setting is after the plugin initialization section. +[the reason we are using autocmd is that, vim always read .vimrc file first and after that starts to load plugins, so in this case, we use autocmd vimenter, to be sure that all plugins are loaded completely and then use gruvbox] If you're using GUI version of vim that should be enough. Otherwise let me guide you through the hell of [terminal specific issues](https://github.com/morhetz/gruvbox/wiki/Terminal-specific).