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

x/ddc_vim/deps.ts>op.bomb

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

When writing a file and the following conditions are met, a BOM (Byte Order Mark) is prepended to the file:

  • this option is on
  • the 'binary' option is off
  • 'fileencoding' is "utf-8", "ucs-2", "ucs-4" or one of the little/big endian variants. Some applications use the BOM to recognize the encoding of the file. Often used for UCS-2 files on MS-Windows. For other applications it causes trouble, for example: "cat file1 file2" makes the BOM of file2 appear halfway the resulting file. Gcc doesn't accept a BOM. When Vim reads a file and 'fileencodings' starts with "ucs-bom", a check for the presence of the BOM is done and 'bomb' set accordingly. Unless 'binary' is set, it is removed from the first line, so that you don't see it when editing. When you don't change the options, the BOM will be restored when writing the file.

(default off)

type

LocalOption<boolean>