[lxc-users] lxc config edit $container - how to change the editor (defaults to vim.tiny)?
Stéphane Graber
stgraber at stgraber.org
Sun Oct 13 16:05:17 UTC 2019
Oh and I forgot to mention, you can also use the longer approach of doing:
lxc config show $container > config.yaml
<editor of choice> config.yaml
lxc config edit $container < config.yaml
On Sun, Oct 13, 2019 at 12:04 PM Stéphane Graber <stgraber at stgraber.org>
wrote:
> Because snaps must be self-contained, we actually have to ship the text
> editors inside the snap...
> Shipping the full build of vim isn't practical as it's linking against
> python3, pulling all of python along with it.
>
> So right now the snap includes both vim.tiny and nano, you can choose
> which you want through the EDITOR env variable.
> We've also very recently fixed support for .vimrc so if you want to try to
> configure vim.tiny to be more usable, you can write a vimrc for it in
> ~/snap/lxd/current/.vimrc
>
> Stéphane
>
> On Sun, Oct 13, 2019 at 11:13 AM Tomasz Chmielewski <mangoo at wpkg.org>
> wrote:
>
>> In the last week or two, my lxd servers installed from snap start
>> "vim.tiny" when I use "lxc config edit $container".
>>
>> It used to use vim before (I think - vim.tiny has arrow keys messed up,
>> and they used to work as expected before).
>>
>> How to change the editor to something else, i.e. proper/full vim?
>>
>>
>> Tomasz Chmielewski
>> _______________________________________________
>> lxc-users mailing list
>> lxc-users at lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>
>
>
> --
> Stéphane
>
--
Stéphane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20191013/7deea90b/attachment.html>
More information about the lxc-users
mailing list