Skip to main content
Module

x/denops_std/function/mod.ts>setcharsearch

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

Set the current character search information to {dict}, which contains one or more of the following entries: char character which will be used for a subsequent |,| or |;| command; an empty string clears the character search forward direction of character search; 1 for forward, 0 for backward until type of character search; 1 for a |t| or |T| character search, 0 for an |f| or |F| character search This can be useful to save/restore a user's character search from a script: :let prevsearch = getcharsearch() :" Perform a command which clobbers user's search :call setcharsearch(prevsearch) Also see |getcharsearch()|. Can also be used as a |method|: SavedSearch()->setcharsearch()

Parameters

denops: Denops
dict: unknown

Returns

Promise<unknown>