www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/06/01/11:18:32

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 551FIWpD2311845
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 551FIWpD2311845
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=kbZaCB8V
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2ECCA3858C24
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1748791111;
bh=heHNRdF4x0NiriWaTSqS0rxHBrb5Ztvx+jQk8lwvAuc=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=kbZaCB8VkgFNzIzR+M74a3GsLCQJ8p0EiOgvbaNzejbhXZzg2hCe5MF1xvbNrqdgK
xk2URB92o2xPyuRG9U5zwvFLHZloD7+yE6eMifhELPcARWUU9WOPYibw3zxZ9o/pJW
zBKrmTKz+1jKFWYf/6CaQ70oWTHCpLDeC7PYf+7A=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A98BF3858019
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A98BF3858019
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748791082; cv=none;
b=LwebQO2LAbZewCaTsJvGKw4ROLInGGgczval1VTSTOgxlRBlGJNf0EXDey0/QTrxQLHZ9bIxtyzph/w6+/qdxjGnWVo9LYkv3nLcOidguft8lIyKXbHjgDijHOsjL3efZ+TJdEYfz4ICr53591c+cZtivN6YdVu7s/M95Cq23mY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1748791082; c=relaxed/simple;
bh=4b02ZtNuAXbaqS5JyCnhTIqlmQ2m7FaSO6Yp19gWh1o=;
h=DKIM-Signature:To:Subject:From:MIME-Version:Message-Id:Date;
b=bpuLYPblMJD+xQkMkjm1dGQIXzRbMGP61smzz1Pe2E92nqU/s/DJS24gT4JOd0o/wLa9RUKRVtnESk9aGLBBdi29BS8i9Z88aQ/6gB01izrIhQwQNplqlXLX52mESMXy68nwjvGu9fbmaoAaus1dcQAiZY95usus+orxF6ANKIA=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A98BF3858019
DKIM-Filter: OpenDKIM Filter v2.11.0 send4.erinn.biz 2F570812CA05
To: cygwin AT cygwin DOT com
Subject: Re: Re: Cygwin package vim breaks the command 'view'
X-Mailer: InstAddr (Block this user:
https://m.kuku.lu/u.php?t=Y3lnd2luQGN5Z3dpbi5jb20%3D&f=YW5ka2luNzczQGZhbmNsdWIucG0%3D&h=289f0aace9d700ac87e6e620ad2fbf5e&c=1)
X-Report-Abuse: <mailto:abuse+1748791081-192156cde0ed5a9eacea0e269bdc4f67__andkin773____fanclub DOT pm AT kuku DOT lu>
X-Report-Abuse-Inquiry: https://magical.kuku.lu/page.contact.php?type=MailNow
X-ServerTime: Mon, 02 Jun 2025 00:18:01 +0900 (JST)
MIME-Version: 1.0
Message-Id: <1748791081-192156cde0ed5a9eacea0e269bdc4f67__andkin773@fanclub.pm>
Date: Mon, 2 Jun 2025 00:18:01 +0900 (JST)
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: andkin773--- via Cygwin <cygwin AT cygwin DOT com>
Reply-To: andkin773 AT fanclub DOT pm
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

(I'm not sure if this reply is addressed correctly for the mailing list)

> did
> alias view >/dev/null 2>&1 || alias view=vim -R
> need quotes also ?

Yes.
To be honest, I don't understand why you ask this?

It's easier to see in interactive bash:

$ alias view=vim -R
-bash: alias: -R: not found
$ alias view
alias view='vim'

This alias will just run 'vim' without readonly-mode.
I discovered yesterday that this is very easy to overlook, because it not visible by default in vim in the terminal ;-)
Perhaps you fell in the same trap.

$ alias view="vim -R"
$ alias view
alias view='vim -R'

To check if vim has readonly-mode enabled:
:set readonly?
should print "readonly".
See also
:he statusline
to show readonly-mode in the status line.

Regards,
Coen 

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019