The desktop crashes, the process is killed, I think the OS did it.

- Enda


________________________________
 From: Ben Fritz <[email protected]>
To: [email protected] 
Cc: "[email protected]" <[email protected]>; Enda <[email protected]> 
Sent: Monday, July 30, 2012 5:54 PM
Subject: Re: ex large file
 
On Monday, July 30, 2012 11:12:08 AM UTC-5, Enda wrote:
> Is there a way to empty the contents of a large file? The below doesn't work:
> 
> 
> $ ex -s largefile -c '1,$d' -c wq 
> 
> Killed
> 
> 
> 
> - Enda

I haven't tried it but I think that should work.

What happens if you use "vim" instead of "ex -s"? Do you get an E340 for 
exceeding max file size (see :help limits)? When you say "doesn't work" and 
"killed" do you mean Vim crashes, or just seems to hang for a long time and 
then you gave up and terminated it?

Note, probably there are more efficient ways to truncate a file using external 
tools instead of a text editor. Maybe something like 'echo "" > filetowipe'?

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to