fix statusline disaster, detect .vim

This commit is contained in:
2017-12-01 17:19:56 +01:00
parent c76c740d07
commit 27d32c6549
2 changed files with 8 additions and 0 deletions

View File

@@ -1,4 +1,7 @@
function! GetGitStatus()
if !exists('*fugitive#statusline')
return ''
endif
let result=fugitive#statusline()
if strlen(result) == 0
return result