X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Date: Mon, 26 Jan 2009 22:41:11 -0800 From: Gary Johnson To: cygwin AT cygwin DOT com Subject: Re: editing crontab using gvim Message-ID: <20090127064111.GA1788@KCJs-Computer> Mail-Followup-To: cygwin AT cygwin DOT com References: <87odb45sh5 DOT fsf AT nav-akl-pcn-343 DOT mitacad DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Note-from-DJ: This may be spam On 2009-01-27, Shai wrote: > On Tue, Jan 29, 2008 at 9:42 PM, Toby Allsopp wrote: > > > > On Tue, Jan 29 2008, Shai wrote: > > > 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. > 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) Execute :helpgrep crontab You should find 7 hits that will direct you to discussions of using vim as the editor for "crontab -e". HTH, Gary -- 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/