From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20640 invoked by alias); 20 Nov 2007 19:21:07 -0000 Received: (qmail 20631 invoked by uid 22791); 20 Nov 2007 19:21:07 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.185) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Nov 2007 19:21:01 +0000 Received: by nf-out-0910.google.com with SMTP id b2so1665518nfb for ; Tue, 20 Nov 2007 11:20:58 -0800 (PST) Received: by 10.86.90.2 with SMTP id n2mr6477869fgb.1195586458132; Tue, 20 Nov 2007 11:20:58 -0800 (PST) Received: by 10.86.59.7 with HTTP; Tue, 20 Nov 2007 11:20:58 -0800 (PST) Message-ID: <183c528b0711201120u61f8229s14e6aa98a8be2ea8@mail.gmail.com> Date: Tue, 20 Nov 2007 19:24:00 -0000 From: "Brian Mathis" To: cygwin@cygwin.com Subject: Re: Vim: segmentation fault In-Reply-To: <17393e3e0711201116v7c01c77by468aec648bf2d30a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47432F5F.4080302@wustl.edu> <17393e3e0711201116v7c01c77by468aec648bf2d30a@mail.gmail.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2007-11/txt/msg00389.txt.bz2 On Nov 20, 2007 2:16 PM, Matt Wozniski wrote: > On Nov 20, 2007 2:02 PM, Aldi Kraja wrote: > > Hi, > > Opening a file 1.5 GB cygwin Vim reports segmentation fault. > > Vim: Caught deadly signal SEGV. > > > > Is there any way that one can expand the setting of Vim? > > > > I need to change the header of the file to some extent, but I do not > > think that emacs will do it. Less is a pager. Any other idea how to edit > > a file this large? > > If it's only a header you need to edit, you do it the usual unix way... > for a 15000 line file, where the header is in the first 100 lines: > > $ head -100 BIGFILE > filehead > $ tail -14900 BIGFILE > filetail > $ vim filehead > # modify... > $ cat filehead filetail > BIGFILE > $ rm filehead filetail > > And, there's no reason that should crash vim. Do you have the > 1.5 GB of memory that you'd need to open that file? > > ~Matt You could also 'split' the file into more manageable chunks if it's not at the head, then 'cat' it back together when done. -- 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/