When I open Vim from the command line with vim, my _vimrc file runs without an error. When git commit opens vim as its editor, the following error occurs: 
C:\dev\settings>git commit                                                                   
hint: Waiting for your editor to close the file... 
Error detected while processing /c/Users/me/_vimrc:
line    1:                                                                 
E117: Unknown function: pathogen#infect                                    
E15: Invalid expression: pathogen#infect()        
Press ENTER or type command to continue
Why does pathogen#infect() cause an error when git opens vim? How do we fix this?
 
     
    