tpope/vim-fugitive — Issue #150: Slow startup/edition of new file with fugitive
Author: aostruszka
Created: 2012-02-02 12:10:22+00:00
State: open

Hello Tim

I'd like to give a try with your fugitive plugin however it makes entering vim and editing new files slow (10 seconds to enter vim and each split editing new file).
What I have is:
- pathogen installed in ~/.vim/bundle
- pathogen#infect in ~/.vimrc (with link from ~/.vim/autoload/pathogen.vim to ~/.vim/bundle/pathogen/autoload/pathogen.vim)
- tabular installed in ~/.vim/bundle
with this setup the startup is pretty quick (I'm listing here only the problematic part):

$ grep VimEnter vimlog-pathogen-pt
145.000 000.000: VimEnter autocommands

However when I install fugitive to ~/.vim/bundle then above time explodes to 10 seconds:

$ grep VimEnter vimlog-pathogen-fpt
9972.000 9811.000: VimEnter autocommands
10172.000 9976.000: VimEnter autocommands
9978.000 9810.000: VimEnter autocommands
9994.000 9826.000: VimEnter autocommands

How can I debug/decrease that time?
Best regards
Andrzej

PS. This is on cygwin (1.7.9)