3 ms·
What is strange about this is VSCode which Microsoft owns has no problem with 50kb files. Surprised they just don’t go with its text editor. Even more sad, vim
by ec109685 6y ago
What is strange about this is VSCode which Microsoft owns has no problem with 50kb files. Surprised they just don’t go with its text editor.
Even more sad, vim 20 years ago could handle these files with ease, and here we are where 20kb causes the browser to choke.
- Varriount 6y agoNot too long ago had to search through a truly gigantic file (I believe it contained JSON logs?). Sublime Text slowed to a crawl and froze when attempting to open it, and I didn't even bother with VS Code. On a hunch, I tried opening it in Notepad - and it loaded quite quickly!
- Spqa 6y agoSublime and VS code might try to parse it for syntax highlighting, notepad simply read the text.
- IshKebab 6y agoVSCode disables syntax highlighting on very large files.
- scaladev 6y agovim does this too. If it hangs on you when opening a very large file, don't hesitate to press Ctrl+C. It does not terminate the whole process, but aborts the syntax highlighting, and the editor becomes very snappy.
- suprfsat 6y agoTo proactively turn off syntax highlighting, bracket matching, and so forth, I use alias vi='vim -u NONE' which makes it skip vimrc.
- deleted 6y ago[deleted]