Added instructions for cloning the repo to the README since the whole submodule budiness is a bit less typical, and updated the pathogen_update_plugins script to behave accordingly when updating submodules

This commit is contained in:
Kevin 2014-02-21 00:50:25 -05:00
parent c311f0b71d
commit acf3c9999b
2 changed files with 19 additions and 13 deletions

View file

@ -9,18 +9,20 @@
## Installation/Setup ## Installation/Setup
1. Edit the 'vimrc' file and select whether to expect powerline fonts, choose a font for gVim, and add or change any of the loaded config files to match your personal setup. 1. Clone this repository then initialize and update the git submodules (in our case, the vim plugins)
2. For a distro-agnostic system-wide installation in the /etc directory, copy: * ]$ git clone https://github.com/prurigro/darkcloud-vimconfig.git
* The 'vimrc' file to '/etc/vimrc' * ]$ cd darkcloud-vimconfig
* The 'vim' folder to '/etc/vim' * ]$ git submodule init
3. -or- For a single-user installation in a user's home directory, copy: * ]$ git submodule update
* The 'vimrc' file to '~/.vimrc' 2. Edit the 'vimrc' file and select whether to expect powerline fonts, choose a font for gVim, and add or change any of the loaded config files to match your personal setup.
* The 'vim' folder to '~/.vim' 3. There are two main ways this package can be deployed: system-wide or single-user.
* Note: When using the second installation type, the following line in the vimrc file isn't necessary (though it won't hurt to keep it): "set runtimepath+=/etc/vim". * For a distro-agnostic system-wide installation in the /etc directory, copy or link: 'vimrc' to '/etc/vimrc' -and- the 'vim' folder to '/etc/vim'.
* For a single-user installation in a user's home directory, copy or link: 'vimrc' to '~/.vimrc' -and- the 'vim' folder to '~/.vim'.
4. Make sure the 'vimrc' file and 'vim' folder are at least readable to any users that will be using the config. 4. Make sure the 'vimrc' file and 'vim' folder are at least readable to any users that will be using the config.
5. Clone additional vim plugin repos in the 'bundle' folder to have them loaded at startup, and you can add or replace config files in your 'vimrc' file to customize behaviour. 5. Clone additional vim plugin repos in the 'bundle' folder to have them loaded at startup.
6. Run the pathogen_update_plugins script to update your plugins by running 'git pull' on each folder with a '.git' directory in the bundle folder. 6. Yyou can add or replace config files in your 'vimrc' file to customize behaviour.
7. The 'vim/config/keyboard.vim' file has a list of the commands it configures, as well as some basic examples of some provided directly by plugins (though check the plugin folder's README for a full explanation) 7. Run the pathogen_update_plugins script to update your plugins by running 'git pull' on each folder with a '.git' directory in the bundle folder.
8. The 'vim/config/keyboard.vim' file has a list of the commands it configures, as well as some basic examples of some provided directly by plugins (though check the plugin folder's README for a full explanation).
## Credits ## Credits

View file

@ -6,8 +6,12 @@ pushd bundle > /dev/null 2>&1
if [ -d "$each" ]; then if [ -d "$each" ]; then
pushd "$each" > /dev/null 2>&1 pushd "$each" > /dev/null 2>&1
if [ -d .git ]; then if [ -d .git ]; then
echo "Updating ${each}..." echo "Updating git repo: ${each}..."
git pull git pull
elif [ -d .git -o -f .git ]; then
echo "Updating git submodule: ${each}..."
git pull origin master
git submodule update
fi fi
popd > /dev/null 2>&1 popd > /dev/null 2>&1
fi fi