List missing include files
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2List missing include files.
Command entered · ready to apply
Command line
- Typed text
:checkpath- Insertion offset
10
:checkpath lists missing.h because the include scan cannot find it in the configured path.
Missing include files
- Not found
missing.h
Before & after
Before
After
Missing include files
- Not found
missing.h
Documentation-backed illustration. +find_in_path; current buffer is named main.c with include pattern ^\s*#\s*include; includeexpr and suffixesadd are empty, isfname recognizes missing.h, and path=. contains no missing.h beside main.c; cmdheight=4, no pending messages and at least 80 columns let the two unwrapped output lines fit without hit-enter; the output panel is a labelled summary. :checkpath lists missing.h because the include scan cannot find it in the configured path. Primary help: :checkpath.
#include "missing.h"
int value;Cursor on line 1, column 1Details & Vim help
Run :checkpath to list missing include files. Add ! to list all include files that Vim checks. The 'include' and 'path' options affect the search.