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

x/denops_std/function/nvim/mod.ts>nvim_buf_set_mark

๐Ÿ“š Standard module for denops.vim
Go to Latest
function nvim_buf_set_mark
import { nvim_buf_set_mark } from "https://deno.land/x/denops_std@v6.4.0/function/nvim/mod.ts";

Sets a named mark in the given buffer, all marks are allowed file/uppercase, visual, last change, etc. See mark-motions.

Marks are (1,0)-indexed. api-indexing

Note: Passing 0 as line deletes the mark

Parameters:

  • {buffer} Buffer to set the mark on
  • {name} Mark name
  • {line} Line number
  • {col} Column/row number
  • {opts} Optional parameters. Reserved for future use.

Return: true if the mark was set, else false.

See also:

  • nvim_buf_del_mark()
  • nvim_buf_get_mark()

Parameters

denops: Denops
buffer: unknown
name: unknown
line: unknown
col: unknown
opts: unknown

Returns

Promise<unknown>