Try to use some popular editors

If a users editor is not set then pub will try to use vim or nano.