Hello Nitesh,
Thanks for your help.
Your answer can work.
What I did:
1. added EDITOR=vim to /etc/environment
2. source /etc/environment
3. restart the session
In Ubuntu/Debian,also could run select-editor to change the editor
of virsh edit.
Thanks,
dw
在 2016年12月28日 18:17, Nitesh Konkar 写道:
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-en...
Thanks,
Nitesh.
On Wed, Dec 28, 2016 at 2:30 PM, dw <dwlinuxkernel(a)163.com
<mailto: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(a)redhat.com <mailto:libvirt-users@redhat.com>
https://www.redhat.com/mailman/listinfo/libvirt-users
<
https://www.redhat.com/mailman/listinfo/libvirt-users>