Vim Recall繁體中文

Split the window and jump to a matching line for the keyword under the cursor

Ctrl-w i

Example

Normal 0 / 1
#define LIMIT 10
int target;
use LIMIT target;
#include "later.h"
Cursor on line 3, column 11

Split the window and jump to a matching line for the keyword under the cursor.

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
#define LIMIT 10
int target;
use LIMIT target;
#include "later.h"
Cursor on line 3, column 11

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
#define LIMIT 10
int target;
use LIMIT target;
#include "later.h"
Cursor on line 2, column 5

Prepared source workspace

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

Illustrated windows

example.c Active
Definition/declaration found
example.c
Original window retained

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.

Details & Vim help

Split the window and jump to a matching line for the keyword under the cursor. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative. Search starts at the beginning of the file and uses the first matching noncomment line. A count selects the count-th matching line and includes comment lines.