Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.setcharpos

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.setcharpos
import { fn } from "https://deno.land/x/ddc_vim@v4.1.0/deps.ts";
const { setcharpos } = fn;

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

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

call setcharpos('.', [0, 8, 4, 0])

positions the cursor on the fourth character '요'.

call setpos('.', [0, 8, 4, 0])

positions the cursor on the second character '보'.

Can also be used as a method:

GetPosition()->setcharpos('.')

Parameters

denops: Denops
expr: unknown
list: unknown

Returns

Promise<number>