On Sun, 11 Feb 2018 18:09:02 +0800
Zhigang Song <s...@zgang.me> wrote:

> Will vim copy all file content to memory when I open a file?
> 

opening this file in vim:

-rw-r--r-- 1 shlomif shlomif 608170649 Feb 12 12:19 Total-Imp3.txt
shlomif[3fc]:~/Download/unpack/games/freecell/freecell-pro-3fc-deals--split$ wc 
Total-Imp3.txt 
 55946300  55946300 608170649 Total-Imp3.txt
shlomif[3fc]:~/Download/unpack/games/freecell/freecell-pro-3fc-deals--split$ 
────────────────────────────────────────────────────────────────────────────────

takes 10% of my 8 GB of RAM, so I guess vim loads the file into RAM.

Regards,

        Shlomi

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
https://is.gd/MQHVF3 - The Atom Text Editor edits a 2,000,001B file

There is no IGLU Cabal. The problem of founding an IGLU Cabal has been proven,
in a surprise move, to be equivalent to the question of the existence of God,
fully‐tolerant religions and NP‐complete oracles.   — Omer Zak

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to