Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denops_std/option/vim/mod.ts>maxmemtot

📚 Standard module for denops.vim
Latest
variable maxmemtot
import { maxmemtot } from "https://deno.land/x/denops_std@v6.5.0/option/vim/mod.ts";

Maximum amount of memory in Kbyte to use for all buffers together. The maximum usable value is about 2000000 (2 Gbyte). Use this to work without a limit. On 64 bit machines higher values might work. But hey, do you really need more than 2 Gbyte for text editing? Keep in mind that text is stored in the swap file, one can edit files > 2 Gbyte anyway. We do need the memory to store undo info. Buffers with 'swapfile' off still count to the total amount of memory used. Also see 'maxmem'.

(default between 2048 and 10240 (system dependent) or half the amount of memory available)