Skip to main content
Module

x/ddc_vim/deps.ts>op.clipboard

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

This option is a list of comma-separated names. Note: if one of the items is "exclude:", then you can't add an item after that. Therefore do not append an item with += but use ^= to prepend, e.g.:

set clipboard^=unnamed

When using the GUI see 'go-A'. These names are recognized:

unnamed When included, Vim will use the clipboard register '' for all yank, delete, change and put operations which would normally go to the unnamed register. When a register is explicitly specified, it will always be used regardless of whether "unnamed" is in 'clipboard' or not. The clipboard register can always be explicitly accessed using the " notation. Also see gui-clipboard.

unnamedplus A variant of the "unnamed" flag which uses the clipboard register '+' (quoteplus) instead of register '' for all yank, delete, change and put operations which would normally go to the unnamed register. When "unnamed" is also included to the option, yank operations (but not delete, change or put) will additionally copy the text into register ''. Only available with the +X11 feature. Availability can be checked with:

                if has('unnamedplus')

autoselect Works like the 'a' flag in 'guioptions': If present, then whenever Visual mode is started, or the Visual area extended, Vim tries to become the owner of the windowing system's global selection or put the selected text on the clipboard used by the selection register "*. See 'go-a' and quotestar for details. When the GUI is active, the 'a' flag in 'guioptions' is used, when the GUI is not active, this "autoselect" flag is used. Also applies to the modeless selection.

autoselectplus Like "autoselect" but using the + register instead of the * register. Compare to the 'P' flag in 'guioptions'.

autoselectml Like "autoselect", but for the modeless selection only. Compare to the 'A' flag in 'guioptions'.

html When the clipboard contains HTML, use this when pasting. When putting text on the clipboard, mark it as HTML. This works to copy rendered HTML from Firefox, paste it as raw HTML in Vim, select the HTML in Vim and paste it in a rich edit box in Firefox. You probably want to add this only temporarily, possibly use BufEnter autocommands. Only supported for GTK version 2 and later.

exclude:{pattern} Defines a pattern that is matched against the name of the terminal 'term'. If there is a match, no connection will be made to the X server. This is useful in this situation: - Running Vim in a console. - $DISPLAY is set to start applications on another display. - You do not want to connect to the X server in the console, but do want this in a terminal emulator. To never connect to the X server use:

                exclude:.*

            This has the same effect as using the `-X` argument.
            Note that when there is no connection to the X server
            the window title won't be restored and the clipboard
            cannot be accessed.
            The value of 'magic' is ignored, **{pattern}** is
            interpreted as if 'magic' was on.
            The rest of the option value will be used for
            **{pattern}**, this must be the last entry.

(default "autoselect,exclude:cons|linux" for X-windows, "" otherwise)

only in GUI versions or when the +xterm_clipboard feature is included

type

GlobalOption<string>