import { op } from "https://deno.land/x/ddu_vim@v4.0.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
orCTRL-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 aquickfix
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 withquickfix
commands.
(default "")