Hello dw,

Can you plz try this method and check if it works:

Set the preferred editor  in /etc/environment file (to define it globally) and then restart the session.

You may follow these links for more info on the topic.
Link 1: https://www.redhat.com/archives/libvirt-users/2014-September/msg00039.html
Link 2: https://askubuntu.com/questions/432524/how-do-i-find-and-set-my-editor-environment-variable

Thanks,
Nitesh.



On Wed, Dec 28, 2016 at 2:30 PM, dw <dwlinuxkernel@163.com> wrote:
Hi:

    when I modify VM's xml file,the editor is VI,how to set to other editor forever?

    Now I can change the editor to VIM from VI with setting environment EDITOR=$my-favorite-editor,
    but after rebooting,it is VI again.

thanks


_______________________________________________
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users