Skip to main content
Module

x/dpp_vim/deps.ts>fn.win_gettype

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

Return the type of the window: "autocmd" autocommand window. Temporary window used to execute autocommands. "command" command-line window cmdwin (empty) normal window "loclist" location-list-window "popup" popup window popup "preview" preview window preview-window "quickfix" quickfix-window "unknown" window {nr} not found

When {nr} is omitted return the type of the current window. When {nr} is given return the type of this window by number or window-ID.

Also see the 'buftype' option. When running a terminal in a popup window then 'buftype' is "terminal" and win_gettype() returns "popup".

Can also be used as a method:

GetWinid()->win_gettype()

Parameters

denops: Denops
optional
nr: unknown

Returns

Promise<string>