Mercurial > ec-dotfiles
comparison 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 |
comparison
equal
deleted
inserted
replaced
661:c74dffea6a0a | 662:f280738a90a6 |
---|---|
140 tmux_conf_file="`basename "/${tmux_conf}"`" | 140 tmux_conf_file="`basename "/${tmux_conf}"`" |
141 _rc "${1}" "${tmux_conf_file}" ".${tmux_conf_file}" | 141 _rc "${1}" "${tmux_conf_file}" ".${tmux_conf_file}" |
142 done | 142 done |
143 } | 143 } |
144 | 144 |
145 _vim_autoload() { | 145 _vim_x() { |
146 case "${1}" in | 146 case "${1}" in |
147 install) _echon "Copying";; | 147 install) _echon "Copying";; |
148 uninstall) _echon "Removing";; | 148 uninstall) _echon "Removing";; |
149 esac | 149 esac |
150 _echon " vim autoloads..." | 150 x="${2}" |
151 | 151 _echon " vim ${x}..." |
152 for i in "${basedir}/vendor/vim-autoload"/*.vim; do | 152 |
153 autoload_file_name="`basename "/${i}"`" | 153 for i in "${basedir}/vendor/vim-${x}"/*.vim; do |
154 _echon "[${autoload_file_name}]" | 154 file_name="`basename "/${i}"`" |
155 _rc "${1}" "../vendor/vim-autoload/${autoload_file_name}" ".vim/autoload/${autoload_file_name}" > /dev/null | 155 _echon "[${file_name}]" |
156 done | 156 _rc "${1}" "../vendor/vim-${x}/${file_name}" ".vim/${x}/${file_name}" > /dev/null |
157 _echo ...done | |
158 } | |
159 | |
160 _vim_syntax() { | |
161 case "${1}" in | |
162 install) _echon "Copying";; | |
163 uninstall) _echon "Removing";; | |
164 esac | |
165 _echon " vim syntaxes..." | |
166 | |
167 for i in "${basedir}/vendor/vim-syntax"/*.vim; do | |
168 syntax_file_name="`basename "/${i}"`" | |
169 _echon "[${syntax_file_name}]" | |
170 _rc "${1}" "../vendor/vim-syntax/${syntax_file_name}" ".vim/syntax/${syntax_file_name}" > /dev/null | |
171 done | 157 done |
172 _echo ...done | 158 _echo ...done |
173 } | 159 } |
174 | 160 |
175 _upgrade() { | 161 _upgrade() { |
208 _rc "${1}" "hgignore_global" ".hgignore_global" | 194 _rc "${1}" "hgignore_global" ".hgignore_global" |
209 _touch "${1}" "${HOME}/.hgignore_global.local" | 195 _touch "${1}" "${HOME}/.hgignore_global.local" |
210 _rc "${1}" "inputrc" ".inputrc" | 196 _rc "${1}" "inputrc" ".inputrc" |
211 _tmux "${1}" | 197 _tmux "${1}" |
212 _rc "${1}" "vim-srcery-drk" ".vim/colors/srcery-drk.vim" | 198 _rc "${1}" "vim-srcery-drk" ".vim/colors/srcery-drk.vim" |
213 _vim_syntax "${1}" | 199 _vim_x "${1}" autoload |
214 _vim_autoload "${1}" | 200 _vim_x "${1}" colors |
201 _vim_x "${1}" syntax | |
215 _rc "${1}" "vimrc" ".vimrc" | 202 _rc "${1}" "vimrc" ".vimrc" |
216 _rc "${1}" "irbrc" ".irbrc" | 203 _rc "${1}" "irbrc" ".irbrc" |
217 ;; | 204 ;; |
218 *) | 205 *) |
219 _help | 206 _help |