Added a new script that can be used to update the repo if bash is
available. Updated the README. Improved the theme by adding a bunch
of syntax highlighting definitions (mostly rooted in html, though
a bunch of other languages base their colours on it), as well as
tweaking visual selection to longer invert on the block with the cursor,
and parenthesis matching to look the same at both ends. Added a plugin
that improves the theme and adds some keyboard shortcuts to markdown,
which is what the README.md files in Github are written in. I realized
that the h,j,k,l shortcuts equivalent to the ones with arrow keys I'd
added were overwriting other shortcuts with the shift combinations, so
I removed those and the ctrl-ones for consistency. The diff shortcuts
weren't intuitive or easy on the hands, so I tried something else and
I think it works much better now (check vim/keyboard.vim). An update
script has also been added to simplify updating submodules; I'm not
completely clear as to whether following this method will properly
update the submodules in certain conditions like when one is removed,
but this should add new ones and update the existing ones after pulling
from the repo.
2014-04-01 00:03:52 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2014-04-07 19:16:58 -04:00
|
|
|
# work from the base directory of the repository
|
Tons of changes all in one commit because I'd broken a commit a while
back and opted to simply reverse them all- Lots of colour changes, the
update script now removes decommissioned bundles, gentags script can now
have additional paths added to it when generating a tags file, README is
much improved, fixed a few issues that required remapping some toggles,
fixed a bunch of issues with the colourscheme between the terminal and
gvim. You can now setup a custom config file to have loaded after the
darkcloud-vimconfig ones, and there's a custom location for pathogen
modules too, to make things tidier without necessarily needing to use
an additional runtimepath. You can also create a file in your home
directory to assign filetypes to programs, for use with the file
manager. A file can be placed in ~/.vim/ with file associations and
prorams to launch them with. The file manager will also open a file with
vim by hitting shift+enter, since e isn't all that comfortablly placed.
The vimrc can now also point to the darkcloud-vimconfig folder, rather
than relying on the vim folder being in a specific location, and the
after folder is now configured to work in the project too.
2014-04-04 19:49:02 -04:00
|
|
|
cd "${0%/*}"
|
|
|
|
|
2014-04-07 19:16:58 -04:00
|
|
|
# create the user vimrc file in the directory if it doesn't already exist
|
2014-04-08 03:39:10 -04:00
|
|
|
if [ ! -e vim/vimrc.user ]; then
|
2014-05-05 08:57:38 -04:00
|
|
|
echo "Creating user configuration file 'vim/vimrc.user'..."
|
2014-04-08 03:39:10 -04:00
|
|
|
if [ -d vim ] && [ -w vim ]; then
|
|
|
|
echo -e '"Syntax Checking Autostart: (1:start toggled on | 0: start toggled off)\nlet g:autostartchecker=1\n' >> vim/vimrc.user
|
2014-05-05 08:57:38 -04:00
|
|
|
echo -e '"Vim Starts With The Tagbar Open: (1:start open | 0:start closed)\nlet g:autostarttagbar=0\n' >> vim/vimrc.user
|
2014-04-08 03:39:10 -04:00
|
|
|
echo -e '"Powerline Font Support: (1:enabled | 0:disabled)\nlet g:powerlinefonts=1\n' >> vim/vimrc.user
|
|
|
|
echo -e '"GVim Font Selection: (term font set by terminal)\nset guifont=Droid\ Sans\ Mono\ 12' >> vim/vimrc.user
|
|
|
|
fi
|
2014-05-05 08:57:38 -04:00
|
|
|
echo
|
2014-04-08 03:39:10 -04:00
|
|
|
fi
|
2014-04-05 00:55:40 -04:00
|
|
|
|
2014-05-05 08:57:38 -04:00
|
|
|
echo "Updating darkcloud-vimconfig..."
|
Added a new script that can be used to update the repo if bash is
available. Updated the README. Improved the theme by adding a bunch
of syntax highlighting definitions (mostly rooted in html, though
a bunch of other languages base their colours on it), as well as
tweaking visual selection to longer invert on the block with the cursor,
and parenthesis matching to look the same at both ends. Added a plugin
that improves the theme and adds some keyboard shortcuts to markdown,
which is what the README.md files in Github are written in. I realized
that the h,j,k,l shortcuts equivalent to the ones with arrow keys I'd
added were overwriting other shortcuts with the shift combinations, so
I removed those and the ctrl-ones for consistency. The diff shortcuts
weren't intuitive or easy on the hands, so I tried something else and
I think it works much better now (check vim/keyboard.vim). An update
script has also been added to simplify updating submodules; I'm not
completely clear as to whether following this method will properly
update the submodules in certain conditions like when one is removed,
but this should add new ones and update the existing ones after pulling
from the repo.
2014-04-01 00:03:52 -04:00
|
|
|
git pull origin
|
2014-05-05 11:02:40 -04:00
|
|
|
git submodule sync
|
2014-05-05 08:57:38 -04:00
|
|
|
|
|
|
|
echo -e "\nUpdating plugin submodules..."
|
2014-04-02 11:33:49 -04:00
|
|
|
git submodule update --init --recursive
|
Tons of changes all in one commit because I'd broken a commit a while
back and opted to simply reverse them all- Lots of colour changes, the
update script now removes decommissioned bundles, gentags script can now
have additional paths added to it when generating a tags file, README is
much improved, fixed a few issues that required remapping some toggles,
fixed a bunch of issues with the colourscheme between the terminal and
gvim. You can now setup a custom config file to have loaded after the
darkcloud-vimconfig ones, and there's a custom location for pathogen
modules too, to make things tidier without necessarily needing to use
an additional runtimepath. You can also create a file in your home
directory to assign filetypes to programs, for use with the file
manager. A file can be placed in ~/.vim/ with file associations and
prorams to launch them with. The file manager will also open a file with
vim by hitting shift+enter, since e isn't all that comfortablly placed.
The vimrc can now also point to the darkcloud-vimconfig folder, rather
than relying on the vim folder being in a specific location, and the
after folder is now configured to work in the project too.
2014-04-04 19:49:02 -04:00
|
|
|
|
2014-05-05 08:57:38 -04:00
|
|
|
# delete submodules in vim/bundle that were removed up stream
|
|
|
|
echo -e "\nConfiguring plugin submodules..."
|
Tons of changes all in one commit because I'd broken a commit a while
back and opted to simply reverse them all- Lots of colour changes, the
update script now removes decommissioned bundles, gentags script can now
have additional paths added to it when generating a tags file, README is
much improved, fixed a few issues that required remapping some toggles,
fixed a bunch of issues with the colourscheme between the terminal and
gvim. You can now setup a custom config file to have loaded after the
darkcloud-vimconfig ones, and there's a custom location for pathogen
modules too, to make things tidier without necessarily needing to use
an additional runtimepath. You can also create a file in your home
directory to assign filetypes to programs, for use with the file
manager. A file can be placed in ~/.vim/ with file associations and
prorams to launch them with. The file manager will also open a file with
vim by hitting shift+enter, since e isn't all that comfortablly placed.
The vimrc can now also point to the darkcloud-vimconfig folder, rather
than relying on the vim folder being in a specific location, and the
after folder is now configured to work in the project too.
2014-04-04 19:49:02 -04:00
|
|
|
[[ -f .gitmodules ]] && for each in vim/bundle/*; do
|
|
|
|
if [ -d "$each" ]; then
|
|
|
|
if [ -f "${each}/.git" ]; then
|
|
|
|
FILE=$(echo $each | grep -o -e "[^\/]*$")
|
2014-06-02 05:19:41 -04:00
|
|
|
[[ `cat .gitmodules | grep "path = " | grep -o -e "[^\/]*$" | grep -c -e "${FILE}$"` = 0 ]] && (rm -rf "${each}" && echo "Deleted: ${each}" || (echo -e "\033[01;31mWARNING\033[00m: '${each}' was removed upstream but couldn't be deleted here.\n\nPlease delete ${each} manually."; exit 1))
|
Tons of changes all in one commit because I'd broken a commit a while
back and opted to simply reverse them all- Lots of colour changes, the
update script now removes decommissioned bundles, gentags script can now
have additional paths added to it when generating a tags file, README is
much improved, fixed a few issues that required remapping some toggles,
fixed a bunch of issues with the colourscheme between the terminal and
gvim. You can now setup a custom config file to have loaded after the
darkcloud-vimconfig ones, and there's a custom location for pathogen
modules too, to make things tidier without necessarily needing to use
an additional runtimepath. You can also create a file in your home
directory to assign filetypes to programs, for use with the file
manager. A file can be placed in ~/.vim/ with file associations and
prorams to launch them with. The file manager will also open a file with
vim by hitting shift+enter, since e isn't all that comfortablly placed.
The vimrc can now also point to the darkcloud-vimconfig folder, rather
than relying on the vim folder being in a specific location, and the
after folder is now configured to work in the project too.
2014-04-04 19:49:02 -04:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
2014-05-05 08:57:38 -04:00
|
|
|
echo
|
|
|
|
|
|
|
|
# update git-based plugins in vim/bundle.user if any exist
|
|
|
|
if [ ! $(find vim/bundle.user | grep ".git/config" | wc -l) = 0 ]; then
|
|
|
|
echo "Updating custom plugins in 'vim/bundle.user':"
|
|
|
|
pushd vim/bundle.user > /dev/null 2>&1
|
|
|
|
for each in *; do
|
|
|
|
if [ -d "$each" ]; then
|
|
|
|
pushd "$each" > /dev/null 2>&1
|
|
|
|
if [ -d .git ]; then
|
|
|
|
echo -e "\nUpdating git repo: ${each}..."
|
|
|
|
git pull
|
|
|
|
elif [ -f .git ]; then
|
|
|
|
echo -e "\nUpdating git submodule: ${each}..."
|
|
|
|
git pull origin master
|
|
|
|
fi
|
|
|
|
popd > /dev/null 2>&1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
popd > /dev/null 2>&1
|
|
|
|
echo
|
|
|
|
fi
|
2014-04-07 19:16:58 -04:00
|
|
|
|
2014-05-05 08:57:38 -04:00
|
|
|
echo "Generating updated helpdocs for installed plugins..."
|
2014-04-07 19:16:58 -04:00
|
|
|
[[ `type -P vim` ]] && vim -c "Helptags|qa!" &>/dev/null 2>&1
|
2014-05-05 08:57:38 -04:00
|
|
|
echo
|
2014-04-07 19:16:58 -04:00
|
|
|
|
2014-05-05 11:02:40 -04:00
|
|
|
echo "Update Complete!"
|
Tons of changes all in one commit because I'd broken a commit a while
back and opted to simply reverse them all- Lots of colour changes, the
update script now removes decommissioned bundles, gentags script can now
have additional paths added to it when generating a tags file, README is
much improved, fixed a few issues that required remapping some toggles,
fixed a bunch of issues with the colourscheme between the terminal and
gvim. You can now setup a custom config file to have loaded after the
darkcloud-vimconfig ones, and there's a custom location for pathogen
modules too, to make things tidier without necessarily needing to use
an additional runtimepath. You can also create a file in your home
directory to assign filetypes to programs, for use with the file
manager. A file can be placed in ~/.vim/ with file associations and
prorams to launch them with. The file manager will also open a file with
vim by hitting shift+enter, since e isn't all that comfortablly placed.
The vimrc can now also point to the darkcloud-vimconfig folder, rather
than relying on the vim folder being in a specific location, and the
after folder is now configured to work in the project too.
2014-04-04 19:49:02 -04:00
|
|
|
exit 0
|