Skip to main content
Module

x/ddc_vim/deps.ts>fn.win_splitmove

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

Move the window {nr} to a new split of the window {target}. This is similar to moving to {target}, creating a new window using :split but having the same contents as window {nr}, and then closing {nr}.

Both {nr} and {target} can be window numbers or window-IDs. Both must be in the current tab page.

Returns zero for success, non-zero for failure.

{options} is a Dictionary with the following optional entries: "vertical" When TRUE, the split is created vertically, like with :vsplit. "rightbelow" When TRUE, the split is made below or to the right (if vertical). When FALSE, it is done above or to the left (if vertical). When not present, the values of 'splitbelow' and 'splitright' are used.

Can also be used as a method:

GetWinid()->win_splitmove(target)

Parameters

denops: Denops
nr: unknown
target: unknown
optional
options: unknown

Returns

Promise<number>