Skip to main content
Module

x/denops_std/function/mod.ts>sign_jump

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

Open the buffer {buf} or jump to the window that contains {buf} and position the cursor at sign {id} in group {group}. This is similar to the :sign-jump command.

If {group} is an empty string, then the global group is used. For the use of {buf}, see bufname().

Returns the line number of the sign. Returns -1 if the arguments are invalid.

Example:

" Jump to sign 10 in the current buffer
call sign_jump(10, '', '')

Can also be used as a method:

GetSignid()->sign_jump()

Parameters

denops: Denops
id: unknown
group: unknown
buf: unknown

Returns

Promise<number>