1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:30:04 +08:00

detach iedit plugin (#3047)

This commit is contained in:
Wang Shidong 2019-09-12 13:51:44 +08:00 committed by GitHub
parent ad849b6bc6
commit b6c35bf6c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,16 @@ _checkdir () {
fi fi
} }
_default_readme () {
cat <<EOT > README.md
# $1
> $2
This plugin is automatically detach from [SpaceVim](https://github.com/SpaceVim/SpaceVim/). you can use it without SpaceVim.
EOT
}
main () { main () {
case "$1" in case "$1" in
flygrep) flygrep)
@ -75,6 +85,50 @@ main () {
rm -rf detach/$1 rm -rf detach/$1
exit 0 exit 0
;; ;;
iedit)
git clone https://github.com/wsdjeg/iedit.vim.git detach/$1
cd detach/$1
_checkdir autoload/SpaceVim/api/vim
_checkdir autoload/SpaceVim/api/data
_checkdir autoload/SpaceVim/plugins
_detect autoload/SpaceVim/api.vim
_detect autoload/SpaceVim/api/vim/compatible.vim
_detect autoload/SpaceVim/api/vim/highlight.vim
_detect autoload/SpaceVim/api/data/string.vim
_detect autoload/SpaceVim/plugins/iedit.vim
_checkdir autoload/plugin
cat <<EOT > autoload/plugin/iedit.vim
"=============================================================================
" iedit.vim --- multiple cursor support for neovim and vim
" Copyright (c) 2016-2017 Shidong Wang & Contributors
" Author: Shidong Wang < wsdjeg at 163.com >
" URL: https://github.com/wsdjeg/iedit.vim
" License: MIT license
"=============================================================================
""
" @section Introduction, intro
" @stylized iedit.vim
" @library
" @order intro version dicts functions exceptions layers api faq
" multiple cursor in vim, written in pure vim script for MacVim, gvim and vim version
" 8.0+.
"
command! -nargs=0 Iedit call SpaceVim#plugins#iedit#start()
EOT
_detect LICENSE
_default_readme "iedit.vim" "multiple cussor support for Vim/Neovim"
git add .
git config user.email "wsdjeg@qq.com"
git config user.name "SpaceVimBot"
git commit -m "Auto Update"
git remote add wsdjeg_vim_todo https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/iedit.vim.git
git push wsdjeg_vim_todo master
cd -
rm -rf detach/$1
exit 0
;;
vim-todo) vim-todo)
git clone https://github.com/wsdjeg/vim-todo.git detach/$1 git clone https://github.com/wsdjeg/vim-todo.git detach/$1
cd detach/$1 cd detach/$1