Skip to main content
Module

x/ddc_vim/deps.ts>op.switchbuf

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

This option controls the behavior when switching between buffers. Mostly for quickfix commands some values are also used for other commands, as mentioned below. Possible values (comma-separated list): useopen If included, jump to the first open window that contains the specified buffer (if there is one). Otherwise: Do not examine other windows. This setting is checked with quickfix commands, when jumping to errors (":cc", ":cn", "cp", etc.). It is also used in all buffer related split commands, for example ":sbuffer", ":sbnext", or ":sbrewind". usetab Like "useopen", but also consider windows in other tab pages. split If included, split the current window before loading a buffer for a quickfix command that display errors. Otherwise: do not split, use current window (when used in the quickfix window: the previously used window or split if there is no other window). vsplit Just like "split" but split vertically. newtab Like "split", but open a new tab page. Overrules "split" when both are present. uselast If included, jump to the previously used window when jumping to errors with quickfix commands.

(default "")

type

GlobalOption<string>