mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-20 02:56:10 -07:00
Introduce new command PlugOpen to browse the plug directory of a plugin.
This commit is contained in:
parent
d1ac3cdd1f
commit
a28be877f3
5
plug.vim
5
plug.vim
@ -138,6 +138,7 @@ function! s:define_commands()
|
|||||||
endif
|
endif
|
||||||
command! -nargs=* -bar -bang -complete=customlist,s:names PlugInstall call s:install(<bang>0, [<f-args>])
|
command! -nargs=* -bar -bang -complete=customlist,s:names PlugInstall call s:install(<bang>0, [<f-args>])
|
||||||
command! -nargs=* -bar -bang -complete=customlist,s:names PlugUpdate call s:update(<bang>0, [<f-args>])
|
command! -nargs=* -bar -bang -complete=customlist,s:names PlugUpdate call s:update(<bang>0, [<f-args>])
|
||||||
|
command! -nargs=* -bar -bang -complete=customlist,s:names PlugOpen call s:open(<bang>'',<f-args>)
|
||||||
command! -nargs=0 -bar -bang PlugClean call s:clean(<bang>0)
|
command! -nargs=0 -bar -bang PlugClean call s:clean(<bang>0)
|
||||||
command! -nargs=0 -bar PlugUpgrade if s:upgrade() | execute 'source' s:esc(s:me) | endif
|
command! -nargs=0 -bar PlugUpgrade if s:upgrade() | execute 'source' s:esc(s:me) | endif
|
||||||
command! -nargs=0 -bar PlugStatus call s:status()
|
command! -nargs=0 -bar PlugStatus call s:status()
|
||||||
@ -592,6 +593,10 @@ function! s:update(force, names)
|
|||||||
call s:update_impl(1, a:force, a:names)
|
call s:update_impl(1, a:force, a:names)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! s:open(force, name)
|
||||||
|
exec ':Sexplore'.a:force.' '.g:plug_home.'/'.a:name.'/'
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! plug#helptags()
|
function! plug#helptags()
|
||||||
if !exists('g:plugs')
|
if !exists('g:plugs')
|
||||||
return s:err('plug#begin was not called')
|
return s:err('plug#begin was not called')
|
||||||
|
Loading…
Reference in New Issue
Block a user