How to use custom theme in Vim
A guide on how to install a custom theme in Vim using VimPlug
There are numerous methods for installing a custom theme in your VIM setup, but the easiest I've found is through VimPlug. Here are the steps I followed to accomplish this:
- Install vim-plug
This can be easily done by executing the following command:
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- Next, add vim-plug to your vim configuration, which is located in the
~/.vimrc
file (don't worry if it's empty).
You can copy and paste the following configuration file, replacing olivercederborg/poimandres
with the theme of your choice:
call plug#begin()
Plug 'olivercederborg/poimandres.nvim'
call plug#end()
Reload your terminal.
Open vim, press esc, and type
:PlugInstall
. Now you're all set
Published on November 21, 2023 • 1 min read