3 ms·
Turning off line wrapping and syntax highlighting before loading a large file seems to help enormously in Vim.
by spatulon 11y ago
Turning off line wrapping and syntax highlighting before loading a large file seems to help enormously in Vim.
- RBerenguel 11y agoAnd on emacs. I have "turn on/off syntax highlighting" as a shortcut. Specially useful for largish JSON files, for some reason emacs chokes easily on them
- kuschkufan 11y agoI like how you say "on emacs". Makes it sound like "on Windows", i.e. Emacs the OS... ;)
- RBerenguel 11y agoWell, I'm not native so on and in are somehow hard to pinpoint. Quite likely I'd have said also on vim :) (I use emacs+evil by the way)
- weinzierl 11y agoEmacs has (or maybe had, I didn't check for a few year) a hard limit which is 512 MiB on 32 bit platforms.
- JupiterMoon 11y agoOne can turn off syntax highlighting only for long lines in vim. set synmaxcol=N_characters
- hackuser 11y agoHere's my list of commands for large files in Vim, but I'm no Vim guru: set nobackup set nowritebackup set noswapfile Also, from the Vim Tips wiki: "Faster loading of large files" http://vim.wikia.com/wiki/VimTip611 http://vim.wikia.com/wiki/VimTip611