Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

does vim read the whole file into memory

When I open a file, does vim read it all into memory? I experienced significant slowdowns when I open large files. Or is it busy computing something (e.g., line number)?

like image 872
dacongy Avatar asked Nov 03 '22 15:11

dacongy


1 Answers

Disabling features like syntax highlighting, cursorline, line numbers and so on will greatly reduce the load and make Vim snappier in these cases.

There's even a plugin to handle that for you and a Vim tip for some background info.

like image 97
romainl Avatar answered Nov 13 '22 16:11

romainl