diff --git a/README.markdown b/README.markdown index 774c287..5c73463 100644 --- a/README.markdown +++ b/README.markdown @@ -93,10 +93,42 @@ tutorials available._ [nbn]: https://github.com/Shougo/neobundle.vim [pth]: https://github.com/tpope/vim-pathogen -#### Vundle +#### Vim's own package manager -Add to your `.vimrc` and save: +If you haven't used Vim's built in package manager yet you need to +create the directory in which to install packages. + +```bash +mkdir -p ~/.vim/pack/plugins/start +``` + +You can then clone this repo to that directory with + +```bash +git clone git@github.com:reedes/vim-pencil.git ~/.vim/pack/plugins/start +``` +To make this easier add the following to your .bashrc + +```bash +#Vim plugins +export VIMPLUGINS=~/.vim/pack/plugins/start +viminstallplugin() { + pushd $VIMPLUGINS + git clone $* + popd +} +``` + +Run source ~/.bashrc and then you will have an environment variable and a +bash function defined. You may now install plugins by simply running +viminstallplugin eg: + +```bash +viminstallplugin https://github.com/reedes/vim-pencil +``` + +#### Vundle ```vim Plugin 'reedes/vim-pencil' ```