Are there any editors that can edit multi-gigabyte text files, perhaps by only loading small portions into memory at once? It doesn't seem like Vim can handle it =(
相关问题
- React Native Inline style for multiple Text in sin
- Emacs shell: save commit message
- How to change the first two uppercase characters o
- How to change the first two uppercase characters o
- Insert text into current buffer from function
相关文章
- 如何让 vim 支持 .cshtml 文件的代码高亮
- 放在input的text下文本一直出现一个/(即使还没输入任何值)是什么情况
- Auto-save in VIM as you type
- How can I use gcc's -I command to add recursiv
- Vim: overloaded mapping for multiple modes
- How to use relative line numbering universally in
- Rendering plain text through PHP
- Python thinks a 3000-line text file is one line lo
I have used TextPad for large log files it doesn't have an upper limit.
Wow, never managed to get vim to choke, even with a GB or two. I've heard that UltraEdit (on Windows) and BBEdit (on Macs) are even more suitable for even-larger files, but I have no personal experience.
In the past I've successfully used a split/edit/join approach when files get very large. For this to work you have to know about where the to-be-edited text is, in the original file.
I've used FAR Commander's built-in editor/viewer for super-large log files.
Ctrl-C will stop file load. If the file is small enough you may have been lucky to have loaded all the contents and just killed any post load steps. Verify that the whole file has been loaded when using this tip.
Vim can handle large files pretty well. I just edited a 3.4GB file, deleting lines, etc. Three things to keep in mind:
:115355
will take you directly to line 115355, which is much faster going in those large files. Vim seems to start scanning from the beginning every time it loads a buffer of lines, and holding down Ctrl-F to scan through the file seems to get really slow near the end of it.Note - If your Vim instance is in readonly because you hit Ctrl-C, it is possible that Vim did not load the entire file into the buffer. If that happens, saving it will only save what is in the buffer, not the entire file. You might quickly check with a
G
to skip to the end to make sure all the lines in your file are there.Personally, I like UltraEdit. Here is their little spiel on large files.