vim-healthcheck


Ⅰ. 插件描述

Polyfill of Neovim's health-check for Vim

Ⅱ. 基本信息

创建日期:  2018-01-25
使用用户:  7
Github星:  18
插件作者:  Linda_pp

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'rhysd/vim-healthcheck'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'rhysd/vim-healthcheck'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'rhysd/vim-healthcheck'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/rhysd/vim-healthcheck

Ⅳ. 文档说明

Polyfill for :checkhealth in Vim

[vim-healthcheck][] is a polyfill plugin for Vim to use a health-check feature in [Neovim][]. Neovim's
health-check feature is a minimal framework to help with troubleshooting user configuration.
[vim-healthcheck][] provides the same feature for Vim.

Plugin authors can write health-checks for their plugins using the APIs. And plugin users can check
if the installation is healthy. By this polyfill, plugin authors can write common health-checks for
both Neovim and Vim. And plugin users can check their configuration using the health-checks which
was written for Neovim. It would be useful for troubleshooting or triaging issues.

This plugin is just a port of Neovim's health-check implementation.

Usage

Instead of Neovim's standard :checkhealth command, it provides :CheckHealth command on Vim.
If no argument is given, it runs all health-checks and show the results.

:CheckHealth

If some plugin names are specified as arguments, it runs health-checks for them.

:CheckHealth {plugin1} {plugin2} ...

For example, :CheckHealth vim runs health-checks for Vim itself.

To know the detail of the command behavior or to know how to implement health-checks for your plugins,
please read a help document.

:help health

Installation

If you use a plugin manager, please follow the instruction. Please note that this plugin is needed
only on Vim because Neovim supports health-check feature by default.

vim-plug

if !has('nvim')
    Plug 'rhysd/vim-healthcheck'
endif

dein.vim

if !has('nvim')
    call dein#add('rhysd/vim-healthcheck')
endif

neobundle.vim

if !has('nvim')
    NeoBundle 'rhysd/vim-healthcheck'
endif

License

This plugin was created by porting the implementation of health-check feature for Neovim. So this
plugin is distributed under the same license as Neovim. Please read LICENSE for the
details.

添加新评论