I enjoy the Solarized color scheme, so I figured out how to set it up in Vim. The Solarized color scheme provides a plugin for Vim, which makes this pretty straightfoward. The following instructions detail how to do this on Ubuntu 20.04, but other than the installation step, this should work on any Unix-like system so long as Vim is at least version eight. This guide assumes you are familiar with installing packages from the command-line on Ubuntu, git, configuring Vim, and using Vim packages.
First, install Vim if you haven’t already done so.
sudo apt install -y vim
pluginsdirectory according to Vim’s plugin directory scheme for autoloaded plugins, i.e.
➜ mkdir -p ~/.vim/pack/plugins/start
Download the Solarized plugin’s git repository in this directory.
➜ git clone https://github.com/altercation/vim-colors-solarized.git \ ~/.vim/pack/plugins/start/vim-colors-solarized
Optionally, update the help index with the new plugin’s documentation.
➜ vim -u NONE -c "helptags vim-colors-solarized/doc" -c q
From within Vim, access the plugin’s help documentation with
Enable the Solarized Dark color scheme in your Vim configuration file.~/.vim/vimrc
syntax enable set background=dark colorscheme solarized