dotvim

Created: 2012-03-22 23:14
Updated: 2017-06-07 20:26

README.md

Vim Plug-in Management with Pathogen and Git

(via http://mirnazim.org/writings/vim-plugins-i-use/)

0.) Setup a new machine

$ cd ~
$ git clone --recursive git@github.com:dweaver/dotvim.git .vim
$ ln -s .vim/.vimrc .vimrc
$ ln -s .vim/Xresources .Xresources
$ ln -s .vim/.bash_profile .bash_profile
$ ln -s .vim/.screenrc .screenrc

1.) Add a new plugin

$ mv /path/to/plugin ~/.vim/bundle/plugin_name 
$ cd ~/.vim
$ git submodule add git://github.com/tpope/vim-fugitive.git bundle/fugitive
$ git submodule init && git submodule update

2.) Pull latest upstream changes to plugins

$ git submodule foreach git pull

3.) Remove a plugin (via http://stackoverflow.com/questions/1260748/how-do-i-remove-a-git-submodule)

1. Delete the relevant line from .gitmodules file
2. Delete the relevant section from .git/config
3. Run git rm --cached path_to_submodule (no trailing slash)
4. Commit and delete the now untracked submodule files
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more