How do I install vim-plug plugin manager?
Answer
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Explanation
vim-plug is a minimalist plugin manager for Vim. It downloads and manages plugins with a simple configuration syntax.
How it works
- Install vim-plug by downloading
plug.vimto the autoload directory - Add
call plug#begin()andcall plug#end()to your vimrc - List plugins between these calls
- Run
:PlugInstallto install them
Example
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-fugitive'
Plug 'junegunn/fzf.vim'
Plug 'preservim/nerdtree'
call plug#end()
Tips
:PlugInstallinstalls new plugins:PlugUpdateupdates installed plugins:PlugCleanremoves unused plugins:PlugStatusshows plugin status- Plugins are stored in
~/.vim/plugged/by default