Skip to main content
Module

x/denops_std/option/mod.ts>switchbuf

📚 Standard module for denops.vim
Go to Latest
variable switchbuf
import { switchbuf } from "https://deno.land/x/denops_std@v6.1.0/option/mod.ts";

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 "")