] Ctrl-i · Square bracket commands
Example
Normal 0 / 1Normal 1 / 1#define LIMIT 10
int target;
use LIMIT target;
#include "later.h"Cursor on line 3, column 11#define LIMIT 20
int target_later;
int target;Cursor on line 3, column 5Navigate to first line in current and included files that contains the word under the cursor, start searching at cursor position.
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
Skip target_later because underscore is a keyword character; jump to target on line 3 of later.h.
Prepared source workspace
#define LIMIT 20 int target_later; int target;
- Current
example.c- Include
later.h- Keyword
target
Illustrated windows
- later.h Active
Definition/declaration found
Before & after
#define LIMIT 10
int target;
use LIMIT target;
#include "later.h"Cursor on line 3, column 11Prepared 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
#define LIMIT 20
int target_later;
int target;Cursor on line 3, column 5Prepared source workspace
#define LIMIT 20 int target_later; int target;
- Current
example.c- Include
later.h- Keyword
target
Illustrated windows
- later.h Active
Definition/declaration found
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. For the ] form, searching continues below the cursor's line, reaching the subsequent include.
Details & Vim help
Navigate to first line in current and included files that contains the word under the cursor, start searching at cursor position.
Navigate to first line in current and included files that contains the word under the cursor, start searching at cursor position. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.