After I run your script on a relatively fresh machine, I am getting the following error in vim. E117: Unknown function: fugitive#statusline E15: Invalid expression: fugitive#statusline() Any idea what I am missing?