You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have the problem that if I deploy my vimrc in a new environment, an error occurs if gruvbox is not installed since I use vim-plug to install it afterwards. So can it provide a flag that indicating if gruvbox is loaded, so that I can make it fall back to a builtin colorscheme.
Or, is there a workaround? Thanks.
The text was updated successfully, but these errors were encountered:
Gruvbox itself can't provide that flag, because (as you mentioned) gruvbox isn't loaded/installed so there is no way it could set any flags.
In the other hand, there are some workarounds.
You could make the colorscheme gruvbox silent so there wouldn't be any errors if it couldn't be loaded like so silent! colorscheme gruvbox.
For a default color scheme, you need to add it BEFORE gruvbox.
For example, if you want desert to be your default color scheme add these lines to your vimrc:
Hello, I have the problem that if I deploy my
vimrc
in a new environment, an error occurs if gruvbox is not installed since I use vim-plug to install it afterwards. So can it provide a flag that indicating if gruvbox is loaded, so that I can make it fall back to a builtin colorscheme.Or, is there a workaround? Thanks.
The text was updated successfully, but these errors were encountered: