[libvirt-users] virsh's editor configuration

hi all where/how to change vim's I presume configuration, one that virsh uses? thanks. P.

On Tue, Sep 16, 2014 at 01:34:37PM +0100, lejeczek wrote:
hi all where/how to change vim's I presume configuration, one that virsh uses? thanks. P.
Well, virsh just starts an $EDITOR. Set it up properly and you're good to go ;)
Martin
On 16/09/14 13:46, Martin Kletzander wrote: thanks, but more persistent config, eg. tab's width, etc.

On 09/16/2014 08:15 AM, lejeczek wrote:
On Tue, Sep 16, 2014 at 01:34:37PM +0100, lejeczek wrote:
hi all where/how to change vim's I presume configuration, one that virsh uses? thanks. P.
Well, virsh just starts an $EDITOR. Set it up properly and you're good to go ;)
Martin
On 16/09/14 13:46, Martin Kletzander wrote: thanks, but more persistent config, eg. tab's width, etc.
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. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

On 16/09/14 15:21, Eric Blake wrote:
On Tue, Sep 16, 2014 at 01:34:37PM +0100, lejeczek wrote:
hi all where/how to change vim's I presume configuration, one that virsh uses? thanks. P.
Well, virsh just starts an $EDITOR. Set it up properly and you're good to go ;)
Martin
On 16/09/14 13:46, Martin Kletzander wrote: thanks, but more persistent config, eg. tab's width, etc. 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
On 09/16/2014 08:15 AM, lejeczek wrote: 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

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
participants (3)
-
Eric Blake
-
lejeczek
-
Martin Kletzander