Skip to main content
Module

x/denops_std/option/mod.ts>maxmempattern

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

Maximum amount of memory (in Kbyte) to use for pattern matching. The maximum value is about 2000000. Use this to work without a limit.

When Vim runs into the limit it gives an error message and mostly behaves like CTRL-C was typed. Running into the limit often means that the pattern is very inefficient or too complex. This may already happen with the pattern "(.)" on a very long line. "." works much better. Might also happen on redraw, when syntax rules try to match a complex text structure. Vim may run out of memory before hitting the 'maxmempattern' limit, in which case you get an "Out of memory" error instead.

(default 1000)