Skip to main content
Module

x/denops_std/option/mod.ts>confirm

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

When 'confirm' is on, certain operations that would normally fail because of unsaved changes to a buffer, e.g. ":q" and ":e", instead raise a |dialog| asking if you wish to save the current file(s). You can still use a ! to unconditionally |abandon| a buffer. If 'confirm' is off you can still activate confirmation for one command only (this is most useful in mappings) with the |:confirm| command. Also see the |confirm()| function and the 'v' flag in 'guioptions'.