delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/27/00:34:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <87odb45sh5.fsf@nav-akl-pcn-343.mitacad.com>
References: <e3edb0fa0801282320l3a75ca19l70a62dddaf8bfd5b AT mail DOT gmail DOT com> <87odb45sh5 DOT fsf AT nav-akl-pcn-343 DOT mitacad DOT com>
Date: Tue, 27 Jan 2009 07:34:02 +0200
Message-ID: <e3edb0fa0901262134m69ccb653vce54799b006eb65b@mail.gmail.com>
Subject: Re: editing crontab using gvim
From: Shai <shaibn AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Tue, Jan 29, 2008 at 9:42 PM, Toby Allsopp <Toby DOT Allsopp AT navman DOT co DOT nz> wrote:
>
> On Tue, Jan 29 2008, Shai wrote:
>
> > Hi,
> >
> > I have gvim installed and when I do:
> > $ crontab -e
> > gvim opens up my crontab.
> >
> > But, it opens it as readonly and saving it requires wq! but then when
> > it exits, I see:
> > $ crontab.exe -e
> > crontab: no changes made to crontab
>
> EDITOR="gvim -f"
>
> Without the -f, gvim runs in the background and crontab see it exit
> immediately without making any changes.
>
> Regards,
> Toby.

Hi Toby,

If I use your method, I get this when I try and save the file in gvim:
E45: 'readonly' option is set (add ! to override)

Shai

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

- Raw text -


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