Set git editor appropriately