Skip to main content
Module

x/dpp_vim/deps.ts>op.autowrite

Dark powered plugin manager for Vim/neovim
Latest
variable op.autowrite
import { op } from "https://deno.land/x/dpp_vim@v0.2.0/deps.ts";
const { autowrite } = op;

Write the contents of the file, if it has been modified, on each :next, :rewind, :last, :first, :previous, :stop, :suspend, :tag, :!, :make, CTRL-] and CTRL-^ command; and when a :buffer, CTRL-O, CTRL-I, '{A-Z0-9}, or `{A-Z0-9} command takes one to another file. A buffer is not written if it becomes hidden, e.g. when 'bufhidden' is set to "hide" and :next is used. Note that for some commands the 'autowrite' option is not used, see 'autowriteall' for that. Some buffers will not be written, specifically when 'buftype' is "nowrite", "nofile", "terminal" or "prompt". USE WITH CARE: If you make temporary changes to a buffer that you don't want to be saved this option may cause it to be saved anyway. Renaming the buffer with ":file {name}" may help avoid this.

(default off)

type

GlobalOption<boolean>