[libvirt-users] how to modified virsh's editor forever?
dw
dwlinuxkernel at 163.com
Thu Dec 29 09:08:05 UTC 2016
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-environment-variable
>
> Thanks,
> Nitesh.
>
>
>
> On Wed, Dec 28, 2016 at 2:30 PM, dw <dwlinuxkernel at 163.com
> <mailto:dwlinuxkernel at 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 at redhat.com <mailto:libvirt-users at redhat.com>
> https://www.redhat.com/mailman/listinfo/libvirt-users
> <https://www.redhat.com/mailman/listinfo/libvirt-users>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20161229/9013497f/attachment.htm>
More information about the libvirt-users
mailing list