Re: our containers with alias vim=vi

2021-02-10 Thread Zdenek Dohnal
Hi, just note - the functionality has been removed in the recent Vim package for 2 reasons: 1) making it default breaks a default vim alias - vimdiff == vim -d , because diff functionality is not a part of small set of features 'vi' is compiled with 2) making it optional via an environment

Re: our containers with alias vim=vi

2020-12-22 Thread clime
I have just noticed in f33 container, this change was implemented: [root@9c06602a8aa6 ~]# vim /etc/yum.repos.d/x.repo No vim found, using vi, press ENTER to continue It's much much better, thank you a lot to the maintainer (probably Zdenek)! On Wed, 14 Oct 2020 at 13:29, Jonathan Wakely wrote:

Re: our containers with alias vim=vi

2020-10-14 Thread Jonathan Wakely
On 13/10/20 16:04 +0200, Zdenek Dohnal wrote: On 10/13/20 12:34 PM, Jonathan Wakely wrote: On 13/10/20 07:45 +0200, Zdenek Dohnal wrote: On 10/12/20 5:15 PM, Joe Doss wrote: On 10/12/20 1:50 AM, Zdenek Dohnal wrote: This would break using Vim when vim-minimal and vim-enhanced are installed

Re: our containers with alias vim=vi

2020-10-14 Thread Jonathan Wakely
On 13/10/20 07:38 -0500, Chris Adams wrote: Once upon a time, Jonathan Wakely said: Could vim-minimal and vim-enhanced both install the same /etc/profile.d/vim.sh file that did something like this? if [ -n "${BASH_VERSION-}" -o -n "${KSH_VERSION-}" -o -n "${ZSH_VERSION-}" ]; then [

Re: our containers with alias vim=vi

2020-10-13 Thread Dominique Martinet
Gordon Messmer wrote on Tue, Oct 13, 2020: > On 10/13/20 5:38 AM, Chris Adams wrote: > >Rather than script hackery, why not just make vim-minimal and > >vim-enhanced use the alternatives system? They are alternates for > >providing a "vi like" editor. > > I think that's the best option, too. 

Re: our containers with alias vim=vi

2020-10-13 Thread Gordon Messmer
On 10/13/20 5:38 AM, Chris Adams wrote: Rather than script hackery, why not just make vim-minimal and vim-enhanced use the alternatives system? They are alternates for providing a "vi like" editor. I think that's the best option, too.  Dominique wrote some suggestions for speeding up bash

Re: our containers with alias vim=vi

2020-10-13 Thread Sérgio Basto
On Tue, 2020-10-13 at 12:08 -0500, Chris Adams wrote: > Once upon a time, Sérgio Basto said: > > On Tue, 2020-10-13 at 07:38 -0500, Chris Adams wrote: > > > Once upon a time, Jonathan Wakely > > > said: > > > > Could vim-minimal and vim-enhanced both install the same > > > >

Re: our containers with alias vim=vi

2020-10-13 Thread Chris Adams
Once upon a time, Sérgio Basto said: > On Tue, 2020-10-13 at 07:38 -0500, Chris Adams wrote: > > Once upon a time, Jonathan Wakely said: > > > Could vim-minimal and vim-enhanced both install the same > > > /etc/profile.d/vim.sh file that did something like this? > > > > > > if [ -n

Re: our containers with alias vim=vi

2020-10-13 Thread clime
On Tue, 13 Oct 2020 at 16:14, Zdenek Dohnal wrote: > > On 10/13/20 12:34 PM, Jonathan Wakely wrote: > > On 13/10/20 07:45 +0200, Zdenek Dohnal wrote: > >> > >> On 10/12/20 5:15 PM, Joe Doss wrote: > >>> On 10/12/20 1:50 AM, Zdenek Dohnal wrote: > This would break using Vim when vim-minimal

Re: our containers with alias vim=vi

2020-10-13 Thread Zdenek Dohnal
On 10/13/20 12:34 PM, Jonathan Wakely wrote: > On 13/10/20 07:45 +0200, Zdenek Dohnal wrote: >> >> On 10/12/20 5:15 PM, Joe Doss wrote: >>> On 10/12/20 1:50 AM, Zdenek Dohnal wrote: This would break using Vim when vim-minimal and vim-enhanced are installed (it would start Vi instead of

Re: our containers with alias vim=vi

2020-10-13 Thread Zdenek Dohnal
On 10/13/20 12:57 PM, Jonathan Wakely wrote: > On 13/10/20 10:53 +0200, Zdenek Dohnal wrote: >> On 10/12/20 9:34 PM, clime wrote: >>> On Mon, 12 Oct 2020 at 07:39, Zdenek Dohnal wrote: On 10/10/20 2:37 PM, clime wrote: > Hello, > > could Fedora and CentOS containers for docker

Re: our containers with alias vim=vi

2020-10-13 Thread Sérgio Basto
On Tue, 2020-10-13 at 07:38 -0500, Chris Adams wrote: > Once upon a time, Jonathan Wakely said: > > Could vim-minimal and vim-enhanced both install the same > > /etc/profile.d/vim.sh file that did something like this? > > > > if [ -n "${BASH_VERSION-}" -o -n "${KSH_VERSION-}" -o -n > >

Re: our containers with alias vim=vi

2020-10-13 Thread Chris Adams
Once upon a time, Jonathan Wakely said: > Could vim-minimal and vim-enhanced both install the same > /etc/profile.d/vim.sh file that did something like this? > > if [ -n "${BASH_VERSION-}" -o -n "${KSH_VERSION-}" -o -n "${ZSH_VERSION-}" ]; > then > [ "`/usr/bin/id -u 2>/dev/null || echo 0`"

Re: our containers with alias vim=vi

2020-10-13 Thread Jonathan Wakely
On 13/10/20 10:53 +0200, Zdenek Dohnal wrote: On 10/12/20 9:34 PM, clime wrote: On Mon, 12 Oct 2020 at 07:39, Zdenek Dohnal wrote: On 10/10/20 2:37 PM, clime wrote: Hello, could Fedora and CentOS containers for docker and podman come with `alias vim=vi` in ~/.bashrc? I would very much

Re: our containers with alias vim=vi

2020-10-13 Thread Jonathan Wakely
On 13/10/20 07:45 +0200, Zdenek Dohnal wrote: On 10/12/20 5:15 PM, Joe Doss wrote: On 10/12/20 1:50 AM, Zdenek Dohnal wrote: This would break using Vim when vim-minimal and vim-enhanced are installed (it would start Vi instead of typed Vim). To make it work, vim-minimal would have to conflict

Re: our containers with alias vim=vi

2020-10-13 Thread Zdenek Dohnal
On 10/12/20 9:34 PM, clime wrote: > On Mon, 12 Oct 2020 at 07:39, Zdenek Dohnal wrote: >> On 10/10/20 2:37 PM, clime wrote: >>> Hello, >>> >>> could Fedora and CentOS containers for docker and podman come with >>> `alias vim=vi` in ~/.bashrc? >>> >>> I would very much welcome it as I am used to

Re: our containers with alias vim=vi

2020-10-12 Thread Zdenek Dohnal
On 10/12/20 5:15 PM, Joe Doss wrote: > On 10/12/20 1:50 AM, Zdenek Dohnal wrote: >> This would break using Vim when vim-minimal and vim-enhanced are >> installed (it would start Vi instead of typed Vim). To make it work, >> vim-minimal would have to conflict with vim-enhanced, which doesn't make

Re: our containers with alias vim=vi

2020-10-12 Thread clime
On Mon, 12 Oct 2020 at 07:39, Zdenek Dohnal wrote: > > On 10/10/20 2:37 PM, clime wrote: > > Hello, > > > > could Fedora and CentOS containers for docker and podman come with > > `alias vim=vi` in ~/.bashrc? > > > > I would very much welcome it as I am used to type vim everywhere but > > if vi

Re: our containers with alias vim=vi

2020-10-12 Thread Joe Doss
On 10/12/20 1:50 AM, Zdenek Dohnal wrote: This would break using Vim when vim-minimal and vim-enhanced are installed (it would start Vi instead of typed Vim). To make it work, vim-minimal would have to conflict with vim-enhanced, which doesn't make sense - Vi and Vim binaries can exist together

Re: our containers with alias vim=vi

2020-10-12 Thread Petr Pisar
On Sat, Oct 10, 2020 at 02:37:48PM +0200, clime wrote: > could Fedora and CentOS containers for docker and podman come with > `alias vim=vi` in ~/.bashrc? > > I would very much welcome it as I am used to type vim everywhere but > if vi starts instead I am happy too. I know that the solution is to

Re: our containers with alias vim=vi

2020-10-12 Thread Zdenek Dohnal
On 10/10/20 5:57 PM, Joe Doss wrote: > On 10/10/20 7:37 AM, clime wrote: >> Didn't want to write about this first but maybe there are more people >> with the same problem. > > You are not alone. I had to set the same alias for Fedora CoreOS > because I kept typing vim out of habit and FCOS ships

Re: our containers with alias vim=vi

2020-10-11 Thread Zdenek Dohnal
On 10/10/20 2:37 PM, clime wrote: > Hello, > > could Fedora and CentOS containers for docker and podman come with > `alias vim=vi` in ~/.bashrc? > > I would very much welcome it as I am used to type vim everywhere but > if vi starts instead I am happy too. I know that the solution is to > create a

Re: our containers with alias vim=vi

2020-10-10 Thread Sérgio Basto
On Sat, 2020-10-10 at 14:37 +0200, clime wrote: > Hello, > > could Fedora and CentOS containers for docker and podman come with > `alias vim=vi` in ~/.bashrc? > > I would very much welcome it as I am used to type vim everywhere but > if vi starts instead I am happy too. I know that the solution

Re: our containers with alias vim=vi

2020-10-10 Thread Joe Doss
On 10/10/20 7:37 AM, clime wrote: Didn't want to write about this first but maybe there are more people with the same problem. You are not alone. I had to set the same alias for Fedora CoreOS because I kept typing vim out of habit and FCOS ships vim-minimal. It was driving me nuts. Maybe

our containers with alias vim=vi

2020-10-10 Thread clime
Hello, could Fedora and CentOS containers for docker and podman come with `alias vim=vi` in ~/.bashrc? I would very much welcome it as I am used to type vim everywhere but if vi starts instead I am happy too. I know that the solution is to create a customized container but often I want to try