Some changes about editor for git

Make changes suggest by @ahmadia.