Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an 8GB text file which contains output from a structural analysis program. The output is in the form of lines corresponding to time steps - with each line representing state of a system at a time step.

Notepad++ refuses to open the file as expected. While gVim crashes after a minute full of attempts to open the file.

From what I have read, gVim is capable of handling such large files. So is there some adjustment that needs to be done in gVim settings? Or is there some better software?

share|improve this question
    
related: superuser.com/questions/121313/… –  akira Oct 17 at 12:22

1 Answer 1

up vote 3 down vote accepted

Vim has many options and features (syntax highliting, swap file, etc), some which should be disabled to better (faster) open a large file : try those

share|improve this answer
    
in addition, you should probably change your statusbar (if it shows lines, etc). And disable modeline? etc. Another good list : vimhelp.appspot.com/vim_faq.txt.html#faq-5.12 –  Olivier Dulac Jan 2 '13 at 14:40
    
i.imgur.com/WMWMZ.png This is what I get now. Atleast its not crashing. –  OrangeRind Jan 2 '13 at 15:42
    
it's trying to load it all in memory. You can add swap size ... or try another editor that will only load the part you look at. Or you should use "less" if you just need to watch the content of the file and not edit it (or use head & tail, and grep, to trim out whatever you don't need). –  Olivier Dulac Jan 2 '13 at 16:20
    
or even try the ones suggested in this so page : stackoverflow.com/questions/102829/… (glogg looks nice) –  Olivier Dulac Jan 2 '13 at 16:23
    
ok, so it was loading it all in the ram, so for the time being I fetched a computer with 16GB RAM and gVim is up and running. problem solved for now - altough I am trying glogg and other options in the meantime. Thanks! –  OrangeRind Jan 2 '13 at 17:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.