import { fn } from "https://deno.land/x/ddc_vim@v4.1.0/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-ID
s.
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)