Borys Bradel's Blog
Vim and large files
Tags: vim October 10, 2009
I recently had to debug my software created as part of my research. Unfortunately to do that, I needed to look through a log file of several gigabytes. Alas, a debugger is a luxury that is often not available. One of many reasons that systems research takes forever and is something to be avoided. Anyway, my text editor of choice, vim, cannot handle files of that size, at least according to a bug report. The way to get around that is to have lots of empty hard drive space and use the split command: split --bytes=700m largefile.txt smallerfileprefix.txt
Then the individual smaller files can be loaded into vim.
Copyright © 2009 Borys Bradel. All rights reserved. This post is only my possibly incorrect opinion.