Hello, I found in the docs that I can change the editor I use on a per vm bases with the following:
EDITOR=$your-favorite-editor virsh edit $your-vm-name

But how do I change it permanently so when I run:
virsh edit $your-vm-name

It defaults to my favorite editor (vim)?


Ref:
http://wiki.libvirt.org/page/FAQ