search

Home  >  Q&A  >  body text

awk - How does vim read files?

I found that notepad++ was very stuck when reading large files, but gvim could process it more smoothly.
Is vim a line editor similar to ed, which processes files line by line or partially?

我想大声告诉你我想大声告诉你2743 days ago700

reply all(2)I'll reply

  • PHPz

    PHPz2017-05-16 16:38:13

    No, vim is all loaded into the memory. There have been incidents in the past where using vim to view log files of several gigabytes directly filled up the server memory. Therefore, it is generally recommended to use less to view large files on the server side

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-16 16:38:13

    The maximum data that vim can read depends on your memory and vim version (64-bit will be larger). Vim can open very large files, but generally there are corresponding programs for opening and processing large files under Linux, which are better than vim.

    reply
    0
  • Cancelreply