4 ms·
Vim chokes on large files? Never ever has for me on any platform (Linux, OSX and Windows) that I have used it on.
by sigzero 14y ago
Vim chokes on large files? Never ever has for me on any platform (Linux, OSX and Windows) that I have used it on.
- robbles 14y agoVim sometimes chokes on long lines, and very rarely on long files. Both of these are caused by the plugins and settings you have enabled though, not by how the editor works. If you have a plugin that scans through every line in a file (yes, some are this stupid), a large file will take ages to load. Some syntax highlighters that use inefficient regexes have a similar problem, but with long lines. You can test this by opening your giant file with `vim -u NONE large.txt`. That disables your .vimrc.
- desireco42 14y agoThanks for the tip, I will check it out.
- gurraman 14y agoNever happened here either. And I frequently use vim to edit Geonames data sets. I just opened allCountries.txt[1] in ~36 seconds on my MBA and vim scrolls through the file smoothly. 8 256 007 lines taking up 960MB. [1] http://download.geonames.org/export/dump/allCountries.zip http://download.geonames.org/export/dump/allCountries.zip