<div dir="ltr"><div><div><div><div>Hello dw,<br><br></div>Can you plz try this method and check if it works:<br><br></div><div>Set the preferred editor  in <code>/etc/environment</code> file (to define it globally) and then restart the session.<br><br></div><div>You may follow these links for more info on the topic. <br></div><div>Link 1: <a href="https://www.redhat.com/archives/libvirt-users/2014-September/msg00039.html">https://www.redhat.com/archives/libvirt-users/2014-September/msg00039.html</a><br></div>Link 2: <a href="https://askubuntu.com/questions/432524/how-do-i-find-and-set-my-editor-environment-variable">https://askubuntu.com/questions/432524/how-do-i-find-and-set-my-editor-environment-variable</a><br><br></div>Thanks,<br></div>Nitesh.<br><br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 28, 2016 at 2:30 PM, dw <span dir="ltr"><<a href="mailto:dwlinuxkernel@163.com" target="_blank">dwlinuxkernel@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi:<br>
<br>
    when I modify VM's xml file,the editor is VI,how to set to other editor forever?<br>
<br>
    Now I can change the editor to VIM from VI with setting environment EDITOR=$my-favorite-editor,<br>
    but after rebooting,it is VI again.<br>
<br>
thanks<br>
<br>
<br>
______________________________<wbr>_________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/libvirt-users</a><br>
</blockquote></div><br></div>