Skip to main content
Module

x/ddc_vim/deps.ts>fn.interrupt

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.interrupt
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { interrupt } = fn;

Interrupt script execution. It works more or less like the user typing CTRL-C, most commands won't execute and control returns to the user. This is useful to abort execution from lower down, e.g. in an autocommand. Example: :function s:check_typoname(file) : if fnamemodify(a:file, ':t') == '[' : echomsg 'Maybe typo' : call interrupt() : endif :endfunction :au BufWritePre * call s:check_typoname(expand(''))

Parameters

denops: Denops

Returns

Promise<unknown>