Skip to main content
Module

x/denops_std/function/mod.ts>tabpagenr

📚 Standard module for denops.vim
Go to Latest
function tabpagenr
import { tabpagenr } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

The result is a Number, which is the number of the current tab page. The first tab page has number 1.

The optional argument {arg} supports the following values: $ the number of the last tab page (the tab page count). # the number of the last accessed tab page (where g<Tab> goes to). if there is no previous tab page 0 is returned. The number can be used with the :tab command.

Returns zero on error.

Parameters

denops: Denops
optional
arg: unknown

Returns

Promise<number>