Skip to main content
Module

x/dpp_vim/deps.ts>op.switchbuf

Dark powered plugin manager for Vim/neovim
Latest
variable op.switchbuf
import { op } from "https://deno.land/x/dpp_vim@v0.2.0/deps.ts";
const { switchbuf } = op;

This option controls the behavior when switching between buffers. This option is checked, when

  • jumping to errors with the quickfix commands (:cc, :cn, :cp, etc.).
  • jumping to a tag using the :stag command.
  • opening a file using the CTRL-W_f or CTRL-W_F command.
  • jumping to a buffer using a buffer split command (e.g. :sbuffer, :sbnext, or :sbrewind). Possible values (comma-separated list): useopen If included, jump to the first open window in the current tab page that contains the specified buffer (if there is one). Otherwise: Do not examine other windows. 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>