[git] set editor based on what's installed.