hubot-vimexec

0.1.0 • Public • Published

hubot-vimexec

NPM Version Node.js Version Test Lint Test Coverage

A hubot script that executes Vim.

See src/index.ts for full documentation.

Requirements

  • Node.js v12.10.0+
  • Docker
  • mkfifo(1)

Installation

In hubot project repo, run:

npm install hubot-vimexec

Then add hubot-vimexec to your external-scripts.json:

[
  "hubot-vimexec"
]

Usage

When you say a message starts with :, bot executes it as a Vim script. And show the result.

user1>> :echo 'Hello, Vim!'
hubot>> Hello, Vim!

Multiline message can be accepttable. : is needed for only first line.

user1>> :for i in range(3)
echo i
endfor
hubot>> 0
1
2

Vim process is keeping.

user1>> :let variable = 10
hubot>> done with no output: let variable = 10
user1>> :echo variable
hubot>> 10

Customize

TODO (See header comment of src/index.ts)

License

zlib License

Author

thinca thinca+npm@gmail.com

Package Sidebar

Install

npm i hubot-vimexec

Weekly Downloads

0

Version

0.1.0

License

Zlib

Unpacked Size

22.5 kB

Total Files

11

Last publish

Collaborators

  • thinca