Skip to main content
Module

x/denops_std/option/mod.ts>readonly

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

If on, writes fail unless you use a '!'. Protects you from accidentally overwriting a file. Default on when Vim is started in read-only mode ("vim -R") or when the executable is called "view". When using ":w!" the 'readonly' option is reset for the current buffer, unless the 'Z' flag is in 'cpoptions'. When using the ":view" command the 'readonly' option is set for the newly edited buffer. See 'modifiable' for disallowing changes to the buffer.

(default off)