Skip to main content
Module

x/denops_std/option/mod.ts>magic

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

Changes the special characters that can be used in search patterns. See pattern. WARNING: Switching this option off most likely breaks plugins! That is because many patterns assume it's on and will fail when it's off. Only switch it off when working with old Vi scripts. In any other situation write patterns that work when 'magic' is on. Include "\M" when you want to /\M. In Vim9 script the value of 'magic' is ignored, patterns behave like it is always set.

(default on)