Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/buffer.ts>getmarklist

๐Ÿ“š Standard module for denops.vim
Go to Latest
function getmarklist
import { getmarklist } from "https://deno.land/x/denops_std@v5.0.2/function/buffer.ts";

Without the {buf} argument returns a List with information about all the global marks. mark

If the optional {buf} argument is specified, returns the local marks defined in buffer {buf}. For the use of {buf}, see bufname(). If {buf} is invalid, an empty list is returned.

Each item in the returned List is a Dict with the following: mark name of the mark prefixed by "'" pos a List with the position of the mark: [bufnum, lnum, col, off] Refer to getpos() for more information. file file name

Refer to getpos() for getting information about a specific mark.

Can also be used as a method:

GetBufnr()->getmarklist()

Parameters

denops: Denops
optional
buf: BufNameArg