Vim Recall繁體中文

List missing include files

:checkpath

Example

Normal 0 / 2

List missing include files.

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.

Sample buffer
#include "missing.h"
int value;
Cursor on line 1, column 1
Details & 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.