diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index cd7e560d8c93cc63eb85ab9fdd5378c146707995..60e27c4800d7a61bd36c3356bcee195fc455b356 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -220,7 +220,7 @@ endfunction augroup fugitive autocmd! - autocmd BufNewFile,BufReadPost * call fugitive#detect(expand('<amatch>:p')) + autocmd BufNewFile,BufReadPost * call fugitive#detect(expand('%:p')) autocmd FileType netrw call fugitive#detect(expand('%:p')) autocmd User NERDTreeInit,NERDTreeNewRoot call fugitive#detect(b:NERDTreeRoot.path.str()) autocmd VimEnter * if expand('<amatch>')==''|call fugitive#detect(getcwd())|endif