From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.atof.net (smtp1.atof.net [52.86.233.228]) by sourceware.org (Postfix) with ESMTPS id E03D03861878 for ; Wed, 20 Dec 2023 19:45:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E03D03861878 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gluelogic.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gluelogic.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E03D03861878 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=52.86.233.228 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703101515; cv=none; b=nSxYRkoJwfZpuHEGEr/aK7d/doFdU3YdEDTRPzsFdWiGssc87O88Cy4A5hjkTXWVJPDfQTNzJ4BVYB1E6erOMOs9vRRI2db1XdLauea7ax0qYnRQsZd0jZ5I3DQ1NuBVG4pp+z6U5uF/PUPFTGB1uxeMV98eg6ybkanLb3g22DI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703101515; c=relaxed/simple; bh=xXCpOMfWu4OJImH+Vior+Wp8dVXzh3OqWKnhkYznVZ4=; h=Date:From:To:Subject:Message-ID:Mime-Version; b=uaSDSJ2xz8/FaTqP+zNfweJOdjVzURhKP1h2nvv0+k2I+ig/JtD9iZttKE93JdpjcnF3Hxm1lVKmk1/8vHZMltsc8xPZ17vQ4qqJZ2RuWWLvZK0X8RQEZ4oGTd4Lij97hjh++DspkTvW9b1w7dEv7SIq65Qn3JJ+pDvorOvWYjo= ARC-Authentication-Results: i=1; server2.sourceware.org X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-Spam-Language: en X-Spam-Relay-Country: X-Spam-DCC: B=www.nova53.net; R=smtp1.atof.net 1206; Body=1 Fuz1=1 Fuz2=1 X-Spam-RBL: X-Spam-PYZOR: Reported 0 times. Date: Wed, 20 Dec 2023 14:45:08 -0500 From: gs-cygwin.com@gluelogic.com To: Lee Cc: matthew patton , "cygwin@cygwin.com" Subject: Re: vim: errors launching "/usr/bin/vi Message-ID: References: <7d0e764a-3f03-42c8-a6f3-63355e218f1e@gmail.com> <13058478.2154617.1703098667904@mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 List-Id: On Wed, Dec 20, 2023 at 02:23:49PM -0500, Lee via Cygwin wrote: > If anyone has access to a redhat linux system, do they 'alias vi=vim' > or put vi under /etc/alternatives? FYI: neither. $ cat /etc/fedora-release Fedora release 39 (Thirty Nine) $ cat /usr/bin/vi #!/usr/bin/sh # run vim if: # - 'vi' command is used and 'vim' binary is available # - 'vim' command is used # NOTE: Set up a local alias if you want vim -> vi functionality. We will not # do it globally, because it messes up with available startup options (see # ':help starting', 'vi' is not capable of '-d'). The introducing an environment # variable, which an user must set to get the feature, will do the same trick # as setting an alias (needs user input, does not work with sudo), so it is left # on user whether he decides to use an alias: # # alias vim=vi # # in bashrc file. if test -f /usr/bin/vim then exec /usr/bin/vim "$@" fi # run vi otherwise exec /usr/libexec/vi "$@"