Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/mod.ts>win_splitmove

๐Ÿ“š Standard module for denops.vim
Go to Latest
function win_splitmove
import { win_splitmove } from "https://deno.land/x/denops_std@v5.0.2/function/mod.ts";

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>