Mercurial > ec-dotfiles
diff setup @ 662:f280738a90a6
[vim] vendor theme and add some more
author | nanaya <me@nanaya.pro> |
---|---|
date | Fri, 10 Dec 2021 20:20:30 +0900 |
parents | b9672858e2e2 |
children | 850b04203732 |
line wrap: on
line diff
--- a/setup Fri Dec 10 19:02:27 2021 +0900 +++ b/setup Fri Dec 10 20:20:30 2021 +0900 @@ -142,32 +142,18 @@ done } -_vim_autoload() { +_vim_x() { case "${1}" in install) _echon "Copying";; uninstall) _echon "Removing";; esac - _echon " 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 -} + x="${2}" + _echon " vim ${x}..." -_vim_syntax() { - case "${1}" in - install) _echon "Copying";; - uninstall) _echon "Removing";; - esac - _echon " 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 + for i in "${basedir}/vendor/vim-${x}"/*.vim; do + file_name="`basename "/${i}"`" + _echon "[${file_name}]" + _rc "${1}" "../vendor/vim-${x}/${file_name}" ".vim/${x}/${file_name}" > /dev/null done _echo ...done } @@ -210,8 +196,9 @@ _rc "${1}" "inputrc" ".inputrc" _tmux "${1}" _rc "${1}" "vim-srcery-drk" ".vim/colors/srcery-drk.vim" - _vim_syntax "${1}" - _vim_autoload "${1}" + _vim_x "${1}" autoload + _vim_x "${1}" colors + _vim_x "${1}" syntax _rc "${1}" "vimrc" ".vimrc" _rc "${1}" "irbrc" ".irbrc" ;;