Installing vim-plug on macOS

vim-plug is a VIM plug-in manager to install themes and other plug-ins in VIM. It’s the most populair one at the moment.


To install vim-plug you can go over to and run the following command:

$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ 

This will create a autoload directory and place plug.vim in it.


To enable the loading of plug-ins you need to add the loading code to your vimrc. If you already have one you can add it with:

$ vim ~/.vimrc 


# vimrc
call plug#begin()
Plug 'tpope/vim-sensible'
call plug#end()

Installing a theme

I installed vim-plug to easily add a theme to my vim setup. I chose the theme

You can install the theme by adding the plug to you vimrc

# vimrc
call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'sonph/onehalf', { 'rtp': 'vim' }
call plug#end()

colorscheme onehalfdark
let g:airline_theme='onehalfdark'

Info: When using and installing new plug’s you might need to update plug from vim commando mode with: :PlugUpdate

Found this useful? consider buying me a cup of coffee