Vim plugins and .vimrc
After cloning the repository, run the "init.sh" script to install.
F4 | Project explorer |
F5 | Show classes, methods, variables of current file |
Ctrl-h | List open buffers and switch between them |
Ctrl-n | Find class |
Ctrl-m | Find file |
F12 | Re-index project files |
To add a new plugin, do:
git submodule add https://github.com/scrooloose/nerdcommenter.git submodules/nerdcommenter
cd bundle
ln -s ../submodules/nerdcommenter
cd ..
./init.sh
git add bundle/nerdcommenter
git commit -m 'add nerdcommenter submodule'
git push
To update plugins do:
./update.sh
git add -A submodules
git commit -m 'update plugins'
git push
Updating plugin documentation:
open vim and do :Helptags
Removing a plugin (http://stackoverflow.com/a/1260982):
Delete the relevant section from the .gitmodules file.
Stage the .gitmodules changes: git add .gitmodules
Delete the relevant section from .git/config.
Run git rm --cached path_to_submodule (no trailing slash).
Run git rm bundle/<symbolic link to submodule>
Run rm -rf .git/modules/path_to_submodule
Commit: git commit -m "Removed submodule <name>"
Delete the now untracked submodule files: rm -rf path_to_submodule