curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
$ mkdir ~/.vim/plugged
$ vim ~/.vimrc
加入以下内容
call plug#begin('~/.vim/plugged')
Plug 'beanworks/vim-phpfmt' #添加要安装的插件
call plug#end()
$ vim
:PlugInstall
Updated. Elapsed time: 2.631094 sec.
[=]
- Finishing ... Done!
- vim-phpfmt: remote: Total 14 (delta 0), reused 9 (delta 0), pack-reused 0