Skip to main content
Module

x/dpp_vim/deps.ts>fn.win_move_separator

Dark powered plugin manager for Vim/neovim
Latest
function fn.win_move_separator
import { fn } from "https://deno.land/x/dpp_vim@v0.2.0/deps.ts";
const { win_move_separator } = fn;

Move window {nr}'s vertical separator (i.e., the right border) by {offset} columns, as if being dragged by the mouse. {nr} can be a window number or window-ID. A positive {offset} moves right and a negative {offset} moves left. Moving a window's vertical separator will change the width of the window and the width of other windows adjacent to the vertical separator. The magnitude of movement may be smaller than specified (e.g., as a consequence of maintaining 'winminwidth'). Returns TRUE if the window can be found and FALSE otherwise. This will fail for the rightmost window and a full-width window, since it has no separator on the right. Only works for the current tab page.

Can also be used as a method:

GetWinnr()->win_move_separator(offset)

Parameters

denops: Denops
nr: unknown
offset: unknown

Returns

Promise<number>