Does anyone have any recommendations for a programmer's editor that can cope with large files on Mac OS X? By large I mean hundreds of megabytes. TextMate doesn't cut it.
I have used gvim
for files larger than 1 GB of NASTRAN output.
gvim
handles large files very well.
In fact that was the main reason I switched from Emacs
to vim.
Emacs
is a great editor but it can handle files only as large as 128 MB, at least the 32-bit version. If you decide to use Emacs
I recommend to configure it to turn syntax highlighting off for large files.
Another way to deal with large files those days was heavy usage of head
, tail
and split
.
emacs, naturally, at least a 64 bit build (you can do that on OS X now, right?)
But also, these are surely generated files. Do you really need to interact with them all at once?
Crisp claims the ability to edit files of "8GB or more", but I haven't tried it.
BBEdit, that old standby, is famous for handling really large files with aplomb (or, at least, it was back in the pre-TextMate era). There's a free version, TextWranger; I assume it's based on the same core and should still work.
If you just want to have an idea of structure, how about browsing with more or less?
Definitely vim is the answer. Check out the macvim, the mac version.
Vim has already been recommended. If you're using vim you might want to also use the LargeFile plugin (by the inimitable Charles "Dr Chip" Campbell), which automatically disables various features of vim in the interests of speed for files over 100Mb (at the default setting).