:checkhealth command runs a series of diagnostic tests to check the health of your Neovim installation.
If it uncovers any problems, it usually offers suggestions on how to fix them, or where to go to learn more.
Optional features in Vim and Neovim
Vim and Neovim have different ways of enabling optional features. Simply put: Vim can enable optional features at compile time, whereas Neovim can enable optional features at runtime.
When you compile Vim, you can use the
--with-features flag to specify a
huge feature set.
:help +feature-list to find out which features are included in each type of build.
Neovim always builds using the equivalent of a
huge feature set.
Instead, Neovim uses providers, which make it possible to dynamically enable functionality when the necessary tools are available in the environment.
Currently Neovim ships with providers for clipboard support, python integration, and ruby integration.
For example, take clipboard support on OS X.
The version of Vim that ships with OS X was compiled without clipboard support.
If you want Vim with clipboard support on OS X, then you either have to recompile or reinstall Vim.
With Neovim, you simply have to make sure that
pbpaste are available and the clipboard feature works automatically.
:CheckHealth or :checkhealth
:CheckHealth command has been available since version 0.1.5 of Neovim.
With Neovim version 0.2.1 and newer, you can use
:checkhealth (as well as
:CheckHealth). This screencast was recorded using version 0.1.7 of Neovim, so you’ll see me using
:CheckHealth, because it was the only option at the time.
Remember: user-defined commands always have to begin with a capital letter, while commands that start with a lowercase letter are always built-in commands.