Skip to main content
Module

x/ddc_vim/deps.ts>op.fsync

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

When on, the library function fsync() will be called after writing a file. This will flush a file to disk, ensuring that it is safely written even on filesystems which do metadata-only journaling. This will force the harddrive to spin up on Linux systems running in laptop mode, so it may be undesirable in some situations. Be warned that turning this off increases the chances of data loss after a crash. On systems without an fsync() implementation, this variable is always off. Also see 'swapsync' for controlling fsync() on swap files. 'fsync' also applies to |writefile()|, unless a flag is used to overrule it. This option cannot be set from a |modeline| or in the |sandbox|, for security reasons.