mirror of
https://github.com/amix/vimrc
synced 2024-11-15 08:27:13 +00:00
Addd snimpate-snippets and update_everything.py
This commit is contained in:
parent
20c294daba
commit
dbab559f4e
3 changed files with 39 additions and 0 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -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
|
||||
|
|
1
sources_plugins/snipmate-snippets
Submodule
1
sources_plugins/snipmate-snippets
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit c07a5808f7f88e78bdb5729429abc84927671424
|
35
update_everything.py
Normal file
35
update_everything.py
Normal file
|
@ -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'])
|
Loading…
Reference in a new issue