From bf75bca62def6ea1c39ebfede0391e9b4530ece2 Mon Sep 17 00:00:00 2001 From: titubery <17917040+Titubery@users.noreply.github.com> Date: Thu, 21 Nov 2019 01:56:22 +0800 Subject: [PATCH 1/3] add some colorscheme --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 6373486e..bdcbd0f2 100755 --- a/install.sh +++ b/install.sh @@ -358,7 +358,11 @@ function copy_files() mkdir ~/.vim rm -rf ~/.vim/colors - ln -s ${PWD}/colors ~/.vim + mkdir -p ~/.vim/colors + cp ${PWD}/colors/* ~/.vim/colors/ + curl -sLf https://raw.githubusercontent.com/morhetz/gruvbox/master/colors/gruvbox.vim > ~/.vim/colors/gruvbox.vim + curl -sLf https://raw.githubusercontent.com/sjl/badwolf/master/colors/badwolf.vim > ~/.vim/colors/badwolf.vim + curl -sLf https://raw.githubusercontent.com/junegunn/seoul256.vim/master/colors/seoul256.vim > ~/.vim/colors/seoul256.vim rm -rf ~/.vim/ftplugin ln -s ${PWD}/ftplugin ~/.vim From 2aca0070a7f7986577a1620e9e244408275f3ab8 Mon Sep 17 00:00:00 2001 From: titubery <17917040+Titubery@users.noreply.github.com> Date: Thu, 21 Nov 2019 02:00:09 +0800 Subject: [PATCH 2/3] add Unplug refer to https://github.com/junegunn/vim-plug/issues/469#issuecomment-226965736 --- .vimrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.vimrc b/.vimrc index 2f8a7d8c..5b88d1e1 100644 --- a/.vimrc +++ b/.vimrc @@ -108,6 +108,16 @@ if has("gui_running") set guicursor=n-v-c:ver5 " 设置光标为竖线 endif +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" 卸载默认插件Unplug +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +function! s:deregister(repo) + let repo = substitute(a:repo, '[\/]\+$', '', '') + let name = fnamemodify(repo, ':t:s?\.git$??') + call remove(g:plugs, name) +endfunction +command! -nargs=1 -bar Unplug call s:deregister() + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " 插件列表 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" From 1c32aac5a56f7c5b2a6c949c3020cb1ba81cfe75 Mon Sep 17 00:00:00 2001 From: titubery <17917040+Titubery@users.noreply.github.com> Date: Thu, 21 Nov 2019 02:03:45 +0800 Subject: [PATCH 3/3] add Unplug usage --- .vimrc.plugins | 1 + 1 file changed, 1 insertion(+) diff --git a/.vimrc.plugins b/.vimrc.plugins index d769e2f8..ddf022d9 100644 --- a/.vimrc.plugins +++ b/.vimrc.plugins @@ -9,3 +9,4 @@ " Plug 'gorodinskiy/vim-coloresque' " Plug 'vim-scripts/DoxygenToolkit.vim' +" Unplug 'vim-scripts/DoxygenToolkit.vim'