From dbab559f4ee32b842f04fdcde5093ce2e8e8da90 Mon Sep 17 00:00:00 2001 From: amix Date: Wed, 15 Aug 2012 23:03:05 -0400 Subject: [PATCH] Addd snimpate-snippets and update_everything.py --- .gitmodules | 3 +++ sources_plugins/snipmate-snippets | 1 + update_everything.py | 35 +++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 160000 sources_plugins/snipmate-snippets create mode 100644 update_everything.py diff --git a/.gitmodules b/.gitmodules index a2c24428..d93bb7bc 100644 --- a/.gitmodules +++ b/.gitmodules @@ -58,3 +58,6 @@ [submodule "sources_misc/vim-markdown"] path = sources_misc/vim-markdown url = https://github.com/tpope/vim-markdown.git +[submodule "sources_plugins/snipmate-snippets"] + path = sources_plugins/snipmate-snippets + url = git://github.com/honza/snipmate-snippets.git diff --git a/sources_plugins/snipmate-snippets b/sources_plugins/snipmate-snippets new file mode 160000 index 00000000..c07a5808 --- /dev/null +++ b/sources_plugins/snipmate-snippets @@ -0,0 +1 @@ +Subproject commit c07a5808f7f88e78bdb5729429abc84927671424 diff --git a/update_everything.py b/update_everything.py new file mode 100644 index 00000000..55793b07 --- /dev/null +++ b/update_everything.py @@ -0,0 +1,35 @@ +import os +import shutil +import subprocess + +paths = [ + 'sources_plugins/vim-snipmate', + 'sources_plugins/vim-addon-mw-utils', + 'sources_plugins/tlib', + 'sources_plugins/vim-snippets', + 'sources_plugins/bufexplorer.zip', + 'sources_plugins/nerdtree', + 'sources_plugins/vim-surround', + 'sources_plugins/ack.vim', + 'sources_plugins/open_file_under_cursor.vim', + 'sources_plugins/vim-powerline', + 'sources_plugins/ctrlp.vim', + 'sources_misc/vim-coffee-script', + 'sources_misc/vim-less', + 'sources_misc/vim-bundle-mako', + 'sources_colors/vim-colors-solarized', + 'sources_colors/mayansmoke', + 'sources_colors/vim-pyte', + 'sources_misc/vim-markdown' +] + +vim_runtime_path = os.path.expanduser('~/.vim_runtime') + +for path in paths: + full_path = os.path.join(vim_runtime_path, path) + shutil.rmtree(full_path, True) + os.chdir(vim_runtime_path) + +subprocess.call(['git', 'pull', '--rebase']) +subprocess.call(['git', 'submodule', 'init']) +subprocess.call(['git', 'submodule', 'update'])