Skip to content

thinca/hubot-vimhelp

Repository files navigation

hubot-vimhelp

NPM Version Node.js Version Test Lint Test Coverage

A hubot script that shows Vim's help.

See scripts/vimhelp.js for full documentation.

Requirements

  • Node.js v16.0.0+

  • vimhelp

    • Vim
    • Git (Optional)

Installation

In hubot project repo, run:

npm install hubot-vimhelp --save

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

[
  "hubot-vimhelp"
]

Sample Interaction

user1>> :help j
hubot>>
j               or                                      *j*
<Down>          or                                      *<Down>*
CTRL-J          or                                      *CTRL-J*
<NL>            or                                      *<NL>* *CTRL-N*
CTRL-N                  [count] lines downward |linewise|.

Also reacts for reply.

user1>> @hubot :help j
hubot>>
@user1
j               or                                      *j*
<Down>          or                                      *<Down>*
CTRL-J          or                                      *CTRL-J*
<NL>            or                                      *<NL>* *CTRL-N*
CTRL-N                  [count] lines downward |linewise|.

Commands

:help

Show the help of Vim. :h which is a shortcut version is available.

:vimhelp

This is a command for administrator. Some sub commands exist.

:vimhelp help

Show the simple help of :vimhelp.

:vimhelp plugin

This command manages the Vim plugins. User can show the help of Vim plugin after you installed a Vim plugin.

User can specify the {plugin-name} by the one of following formats:

  • A repository name of vim-scripts
  • A GitHub repository in owner/repos style
  • A URL of Git repository
:vimhelp plugin install/add {plugin-name}...

Install Vim plugins. You can specify one or more plugin names.

:vimhelp plugin uninstall/rm/remove/delete {plugin-name}...

Uninstall Vim plugins. You can specify one or more plugin names.

:vimhelp plugin update [{plugin-name}...]

Update installed Vim plugins. You can specify one or more plugin names. All Vim plugins are updated when {plugin-name} is not specified.

:vimhelp plugin list

Show the list of installed Vim plugins.

License

zlib License

Author

thinca thinca+npm@gmail.com

About

A hubot script that shows Vim's help.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks