Skip to content
Saeid Saati edited this page May 4, 2020 · 21 revisions

General

First of all let's start with basics. Pick your favorite plugin manager: Pathogen, Vundle, NeoBundle or vim-plug, just to name a few. Pathogen is the oldest, simplest, and most featureless. Vundle is very popular and I've used it for a long time before. If you're using some of Shougo's plugins, you should probably pick NeoBundle. Last but not least is vim-plug, which I've recently switched to.

  • Pathogen
    • git clone https://github.com/morhetz/gruvbox.git ~/.vim/bundle/gruvbox
  • Vundle
    • Add Plugin 'morhetz/gruvbox' to your .vimrc and run :PluginInstall
  • NeoBundle
    • Add NeoBundle 'morhetz/gruvbox' to your .vimrc and run :NeoBundleInstall
  • vim-plug
    • Add Plug 'morhetz/gruvbox' to your .vimrc and run :PlugInstall
  • Vim-8
    • git clone https://github.com/morhetz/gruvbox.git ~/.vim/pack/default/start/gruvbox

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.

Refer Usage page on dark and light themes switching and cursor inversions.

Arch Linux / Manjaro Linux

The vim and vim-airline gruvbox color schemes are available from the AUR as vim-gruvbox-git and vim-airline-gruvbox-git, respectively.

Clone this wiki locally