diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index f788cf2..1411cb1 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -278,6 +278,23 @@ function! s:ProjectionistDetect() abort endif endfunction +let g:io_fugitive = { + \ 'simplify': function('fugitive#simplify'), + \ 'resolve': function('fugitive#resolve'), + \ 'getftime': function('fugitive#getftime'), + \ 'getfsize': function('fugitive#getfsize'), + \ 'getftype': function('fugitive#getftype'), + \ 'filereadable': function('fugitive#filereadable'), + \ 'filewritable': function('fugitive#filewritable'), + \ 'isdirectory': function('fugitive#isdirectory'), + \ 'getfperm': function('fugitive#getfperm'), + \ 'setfperm': function('fugitive#setfperm'), + \ 'readfile': function('fugitive#readfile'), + \ 'writefile': function('fugitive#writefile'), + \ 'glob': function('fugitive#glob'), + \ 'delete': function('fugitive#delete'), + \ 'Real': function('FugitiveReal')} + augroup fugitive autocmd! @@ -340,20 +357,3 @@ augroup END let s:addr_other = has('patch-8.1.560') ? '-addr=other' : '' exe 'command! -bang -nargs=? -range=-1' s:addr_other '-complete=customlist,fugitive#Complete G exe fugitive#Command(, , +"", 0, "", )' exe 'command! -bang -nargs=? -range=-1' s:addr_other '-complete=customlist,fugitive#Complete Git exe fugitive#Command(, , +"", 0, "", )' - -let g:io_fugitive = { - \ 'simplify': function('fugitive#simplify'), - \ 'resolve': function('fugitive#resolve'), - \ 'getftime': function('fugitive#getftime'), - \ 'getfsize': function('fugitive#getfsize'), - \ 'getftype': function('fugitive#getftype'), - \ 'filereadable': function('fugitive#filereadable'), - \ 'filewritable': function('fugitive#filewritable'), - \ 'isdirectory': function('fugitive#isdirectory'), - \ 'getfperm': function('fugitive#getfperm'), - \ 'setfperm': function('fugitive#setfperm'), - \ 'readfile': function('fugitive#readfile'), - \ 'writefile': function('fugitive#writefile'), - \ 'glob': function('fugitive#glob'), - \ 'delete': function('fugitive#delete'), - \ 'Real': function('FugitiveReal')}