Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added instructions for Vim's built in package manager #90

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 34 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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 <git repo> eg:

```bash
viminstallplugin https://github.com/reedes/vim-pencil
```

#### Vundle
```vim
Plugin 'reedes/vim-pencil'
```
Expand Down