diff setup @ 508:bbcffc594d1e

Vendor what should be vendored and add some more.
author edogawaconan <me@myconan.net>
date Mon, 17 Mar 2014 15:47:15 +0900
parents de5f65991cde
children cb4e2a6595ea
line wrap: on
line diff
--- a/setup	Mon Mar 17 11:30:05 2014 +0900
+++ b/setup	Mon Mar 17 15:47:15 2014 +0900
@@ -130,6 +130,16 @@
   done
 }
 
+_vim_syntax() {
+  _echon "Copying vim syntaxes..."
+  for i in "${basedir}/vendor/vim-syntax"/*.vim; do
+    syntax_file_name="`basename "/${i}"`"
+    _echon "[${syntax_file_name}]"
+    _rc "${1}" "../vendor/vim-syntax/${syntax_file_name}" ".vim/syntax/${syntax_file_name}" > /dev/null
+  done
+  _echo ...done
+}
+
 _help() {
   cat <<EOF
 Usage: ${0} [install|uninstall]
@@ -152,10 +162,7 @@
     _rc "${1}" "inputrc" ".inputrc"
     _tmux "${1}"
     _rc "${1}" "vim-base16-default" ".vim/colors/base16-default.vim"
-    _rc "${1}" "vim-syntax-coffee" ".vim/syntax/coffee.vim"
-    _rc "${1}" "vim-syntax-json" ".vim/syntax/json.vim"
-    _rc "${1}" "vim-syntax-scss" ".vim/syntax/scss.vim"
-    _rc "${1}" "vim-syntax-slim" ".vim/syntax/slim.vim"
+    _vim_syntax "${1}"
     _rc "${1}" "vim-autoload-pathogen" ".vim/autoload/pathogen.vim"
     _rc "${1}" "vimrc" ".vimrc"
     _rc "${1}" "irbrc" ".irbrc"