I use Vim-Plug to manage my plugins, which makes my .vim
directory clean and tidy
-
Backup your old vim configuration files:
mv ~/.vim ~/.vim.orig mv ~/.vimrc ~/.vimrc.orig
-
Clone and install this repo:
git clone git://github.com/liugj/vimrc.git ~/.vim ln -s ~/.vim/.vimrc ~/.vimrc
-
Setup
Vim-Plug
:curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
-
Install plugins. Launch vim(ignore the errors and they will disappear after installing needed plugins)and run:
:PlugInstall
Thst's it!
All plugins are listed in file plugin.vim
with detailed comments, just add plugins as you like.
Command | Description |
---|---|
PlugInstall [name ...] [#threads] |
Install plugins |
PlugUpdate [name ...] [#threads] |
Install or update plugins |
PlugClean[!] |
Remove unlisted plugins (bang version will clean without prompt) |
PlugUpgrade |
Upgrade vim-plug itself |
PlugStatus |
Check the status of plugins |
PlugDiff |
Examine changes from the previous update and the pending changes |
PlugSnapshot[!] [output path] |
Generate script for restoring the current snapshot of the plugins |