Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
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.0.1/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)