Skip to main content
Module

x/dpp_vim/deps.ts>fn.setcursorcharpos

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

Same as cursor() but uses the specified column number as the character index instead of the byte index in the line.

Example: With the text "여보세요" in line 4:

call setcursorcharpos(4, 3)

positions the cursor on the third character '세'.

call cursor(4, 3)

positions the cursor on the first character '여'.

Can also be used as a method:

GetCursorPos()->setcursorcharpos()

Parameters

denops: Denops
lnum: unknown
col: unknown
optional
off: unknown

Returns

Promise<number>

Parameters

denops: Denops
list: unknown

Returns

Promise<number>