[libvirt-users] [Bulk] Re: virsh's editor configuration

Eric Blake eblake at redhat.com
Tue Sep 16 16:14:22 UTC 2014


On 09/16/2014 08:49 AM, lejeczek wrote:

>> That's up to you and your $EDITOR settings.  virsh is just spawning
>> whatever editor you told it to (and only falling back to vi if you
>> didn't specify anything), and how you customize your editor is outside
>> the realm of what virsh is responsible for.
>>
> ok, my bad, was looking at vim that I had system-wide tweaked and was
> wondering why virsh does not honour them, but I should see vi instead.
> thanks

Then run:

EDITOR=vim virsh edit $dom

to use vim as your editor, with your vim customizations.  Or even add an
export of EDITOR to your shell startup files.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20140916/c41e527e/attachment.sig>


More information about the libvirt-users mailing list