Vim Recall繁體中文

[i · Square bracket commands

[i

Example

Normal 0 / 1

Show first line found in current and included files that contains the word under the cursor, start searching at beginning of active file.

Prepared source workspace

#define LIMIT 20
int target_later;
int target;
Current
example.c
Include
later.h
Keyword
target

Illustrated windows

example.c Active
Active source
Before & after

Before

Prepared source workspace

#define LIMIT 20
int target_later;
int target;
Current
example.c
Include
later.h
Keyword
target

Illustrated windows

example.c Active
Active source

After

Prepared source workspace

#define LIMIT 20
int target_later;
int target;
Current
example.c
Include
later.h
Keyword
target

Include-search output

example.c:2
int target;

ILLUSTRATION. Prepared example.c includes later.h below the cursor. Use C-style include/define patterns, path=., iskeyword includes underscore, and no comment matches. All sources are illustrated data; no file is opened. Search begins at file start.

Sample buffer
#define LIMIT 10
int target;
use LIMIT target;
#include "later.h"
Cursor on line 3, column 11
Details & Vim help

Show first line found in current and included files that contains the word under the cursor, start searching at beginning of active file.

Show first line found in current and included files that contains the word under the cursor, start searching at beginning of active file. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.