mirror of
https://github.com/junegunn/vim-plug.git
synced 2026-10-07 04:34:30 +08:00
Implement g:plug_url_format (#62)
This commit is contained in:
1 parent
3572ffde79
commit
ab3bd3b17c
3 files changed
+22
-7
No files matched your search
@@ -874,11 +874,24 @@ Execute (Open plug window in a new tab):
|
||||
AssertEqual tabnr, tabpagenr()
|
||||
q
|
||||
|
||||
**********************************************************************
|
||||
~ g:plug_url_format
|
||||
**********************************************************************
|
||||
Execute (Using g:plug_url_format):
|
||||
call plug#begin()
|
||||
let g:plug_url_format = 'git@bitbucket.org:%s.git'
|
||||
Plug 'junegunn/seoul256.vim'
|
||||
let g:plug_url_format = 'git@bitsocket.org:%s.git'
|
||||
Plug 'beauty256'
|
||||
AssertEqual 'git@bitbucket.org:junegunn/seoul256.vim.git', g:plugs['seoul256.vim'].uri
|
||||
AssertEqual 'git@bitsocket.org:vim-scripts/beauty256.git', g:plugs['beauty256'].uri
|
||||
|
||||
Execute (Cleanup):
|
||||
silent! call system('rm -rf '.temp_plugged)
|
||||
silent! call rename('fzf', 'fzf-staged')
|
||||
silent! unlet g:plugs
|
||||
silent! unlet g:plug_home
|
||||
silent! unlet g:plug_url_format
|
||||
silent! unlet temp_plugged vader plug basertp save_rtp repo lnum fzf out tabnr
|
||||
silent! delf PlugStatusSorted
|
||||
silent! delf AssertExpect
|
||||
|
||||
Reference in new issue
Block a user