Mercurial > ec-dotfiles
diff setup @ 572:a163d6875651
Vendor autoloads.
author | nanaya <me@myconan.net> |
---|---|
date | Wed, 24 Jun 2015 13:41:51 +0900 |
parents | 48ab5a354772 |
children | fd416344f175 |
line wrap: on
line diff
--- a/setup Wed Jun 24 13:33:14 2015 +0900 +++ b/setup Wed Jun 24 13:41:51 2015 +0900 @@ -139,6 +139,16 @@ done } +_vim_autoload() { + _echon "Copying vim autoloads..." + for i in "${basedir}/vendor/vim-autoload"/*.vim; do + autoload_file_name="`basename "/${i}"`" + _echon "[${autoload_file_name}]" + _rc "${1}" "../vendor/vim-autoload/${autoload_file_name}" ".vim/autoload/${autoload_file_name}" > /dev/null + done + _echo ...done +} + _vim_syntax() { _echon "Copying vim syntaxes..." for i in "${basedir}/vendor/vim-syntax"/*.vim; do @@ -188,7 +198,7 @@ _tmux "${1}" _rc "${1}" "vim-vividchalk" ".vim/colors/vividchalk.vim" _vim_syntax "${1}" - _rc "${1}" "vim-autoload-pathogen" ".vim/autoload/pathogen.vim" + _vim_autoload "${1}" _rc "${1}" "vimrc" ".vimrc" _rc "${1}" "irbrc" ".irbrc" ;;