tools/vim
Install and using vim plug
seul chan
2018. 2. 22. 11:52
I used Vundle
when using vim, but I found bit more great plugin installer - Plug
.
Easy to install.
When using vim,
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
When using neovim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Usage
here’s my example plugs
call plug#begin('~/.vim/plugged')
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
endif
call plug#end()
Go into command mode using :
and put commands
# install plugins
:PlugInstall [name...]
# update plugins
:PlugUpdate [name...]
# remove unused plugins
:PlugClean
# other commands
:PlugUpgrade # upgrade plug itself
:PlugStatus
:PlugDiff
:PlugSnapshot