diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index cd7e560..60e27c4 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -220,7 +220,7 @@ endfunction augroup fugitive autocmd! - autocmd BufNewFile,BufReadPost * call fugitive#detect(expand(':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('')==''|call fugitive#detect(getcwd())|endif