Module Vim
val init : unit -> unitinitmust be called prior toinputorcommand, and must only be called once.initinitializes and sets up initial global state for Vim.
val input : string -> unitinput(s)sends a single keystroke to Vim.The value
smay be of the following form:- A single ASCII character, ie
"a"or":" - A Vim key, ie
"<cr>"or"<bs>" - A Vim key with modifiers, ie
"<C-a>"
The keystroke is processed synchronously.
- A single ASCII character, ie
val command : string -> unitcommand(cmd)executescmdas an Ex command.For example,
command("edit! buf.txt")would run theedit!command and openbuf.txt.You may use any valid Ex command, although you must omit the leading semicolon.
The command
cmdis processed synchronously.
module AutoCommands : sig ... endmodule Buffer : sig ... endmodule BufferMetadata : sig ... endmodule BufferUpdate : sig ... endmodule Cursor : sig ... endmodule Mode : sig ... endmodule Position : sig ... endmodule Range : sig ... endmodule Search : sig ... endmodule Visual : sig ... end