Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>op.swapfile

Dark deno-powered completion framework for neovim/Vim
Go to Latest
variable op.swapfile
import { op } from "https://deno.land/x/ddc_vim@v4.3.0/deps.ts";
const { swapfile } = op;

Use a swapfile for the buffer. This option can be reset when a swapfile is not wanted for a specific buffer. For example, with confidential information that even root must not be able to access. Careful: All text will be in memory: - Don't use this for big files. - Recovery will be impossible! A swapfile will only be present when 'updatecount' is non-zero and 'swapfile' is set. When 'swapfile' is reset, the swap file for the current buffer is immediately deleted. When 'swapfile' is set, and 'updatecount' is non-zero, a swap file is immediately created. Also see swap-file and 'swapsync'. If you want to open a new buffer without creating a swap file for it, use the :noswapfile modifier. See 'directory' for where the swap file is created.

This option is used together with 'bufhidden' and 'buftype' to specify special kinds of buffers. See special-buffers.

(default on)

type

LocalOption<boolean>