mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-22 06:44:09 -05:00
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:
parent
c311f0b71d
commit
acf3c9999b
2 changed files with 19 additions and 13 deletions
24
README.md
24
README.md
|
@ -9,18 +9,20 @@
|
|||
|
||||
## 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.
|
||||
2. For a distro-agnostic system-wide installation in the /etc directory, copy:
|
||||
* The 'vimrc' file to '/etc/vimrc'
|
||||
* The 'vim' folder to '/etc/vim'
|
||||
3. -or- For a single-user installation in a user's home directory, copy:
|
||||
* The 'vimrc' file to '~/.vimrc'
|
||||
* The 'vim' folder to '~/.vim'
|
||||
* 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".
|
||||
1. Clone this repository then initialize and update the git submodules (in our case, the vim plugins)
|
||||
* ]$ git clone https://github.com/prurigro/darkcloud-vimconfig.git
|
||||
* ]$ cd darkcloud-vimconfig
|
||||
* ]$ git submodule init
|
||||
* ]$ git submodule update
|
||||
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.
|
||||
3. There are two main ways this package can be deployed: system-wide or single-user.
|
||||
* 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.
|
||||
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.
|
||||
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.
|
||||
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)
|
||||
5. Clone additional vim plugin repos in the 'bundle' folder to have them loaded at startup.
|
||||
6. Yyou can add or replace config files in your 'vimrc' file to customize behaviour.
|
||||
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
|
||||
|
||||
|
|
|
@ -5,9 +5,13 @@ pushd bundle > /dev/null 2>&1
|
|||
for each in *; do
|
||||
if [ -d "$each" ]; then
|
||||
pushd "$each" > /dev/null 2>&1
|
||||
if [ -d .git ]; then
|
||||
echo "Updating ${each}..."
|
||||
if [ -d .git ]; then
|
||||
echo "Updating git repo: ${each}..."
|
||||
git pull
|
||||
elif [ -d .git -o -f .git ]; then
|
||||
echo "Updating git submodule: ${each}..."
|
||||
git pull origin master
|
||||
git submodule update
|
||||
fi
|
||||
popd > /dev/null 2>&1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue