Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denops_std/option/vim/mod.ts>imactivatefunc

📚 Standard module for denops.vim
Go to Latest
variable imactivatefunc
import { imactivatefunc } from "https://deno.land/x/denops_std@v5.0.2/option/vim/mod.ts";

This option specifies a function that will be called to activate or deactivate the Input Method. The value can be the name of a function, a lambda or a Funcref. See option-value-function for more information. It is not used in the MS-Windows GUI version. The expression will be evaluated in the sandbox when set from a modeline, see sandbox-option.

Example:

function ImActivateFunc(active)
  if a:active
    ... do something
  else
    ... do something
  endif
  " return value is not used
endfunction
set imactivatefunc=ImActivateFunc

(default "")