aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/vim-addon-mw-utils/autoload/env_reload.vim
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-06-30 16:11:56 +0200
committerKarel Kočí <cynerd@email.cz>2016-06-30 16:11:56 +0200
commit9931e0888b2419326ae10ebbfae532261c5c125f (patch)
tree7504be5daccbb7b7d1ea396754de47b11ed790e5 /vim/bundle/vim-addon-mw-utils/autoload/env_reload.vim
parente573b3020c032400eed60b649a2cbf55266e6bb0 (diff)
downloadmyconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.gz
myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.bz2
myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.zip
Fix submodules
Diffstat (limited to 'vim/bundle/vim-addon-mw-utils/autoload/env_reload.vim')
m---------vim/bundle/vim-addon-mw-utils0
-rw-r--r--vim/bundle/vim-addon-mw-utils/autoload/env_reload.vim12
2 files changed, 0 insertions, 12 deletions
diff --git a/vim/bundle/vim-addon-mw-utils b/vim/bundle/vim-addon-mw-utils
new file mode 160000
+Subproject 0c5612fa31ee434ba055e21c76f456244b3b510
diff --git a/vim/bundle/vim-addon-mw-utils/autoload/env_reload.vim b/vim/bundle/vim-addon-mw-utils/autoload/env_reload.vim
deleted file mode 100644
index d8af33a..0000000
--- a/vim/bundle/vim-addon-mw-utils/autoload/env_reload.vim
+++ /dev/null
@@ -1,12 +0,0 @@
-" in sh/bash you can type export to get a list of environment variables
-" This function assigns those env vars to Vim.
-" Does not delete env vars yet
-" Example: env_reload#ReloadEnv(system("sh -c 'export'")
-fun! env_reload#ReloadEnv(bash_export_command_output)
- for i in split(a:bash_export_command_output,"\n")
- let m = matchlist(i, 'export \([^=]\+\)="\(.*\)"')
- if empty(m) | continue | endif
- " don't care about quoted values right now.
- exec 'let $'.m[1].'='.string(m[2])
- endfor
-endf