Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Vim 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.



Thanks for the tip, I will check it out.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: