Skip to content

Commit

Permalink
add Unplug
Browse files Browse the repository at this point in the history
  • Loading branch information
tuberry authored Nov 20, 2019
1 parent bf75bca commit 2aca007
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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(<args>)

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" 插件列表
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Expand Down

0 comments on commit 2aca007

Please sign in to comment.