Vim Recall繁體中文

Begin editing the file whose name is under the cursor and jump to the line number following the filename

gF

Example

Normal 0 / 1
beta.txt:2
Cursor on line 1, column 1

Begin editing the file whose name is under the cursor and jump to the line number following the filename.

Windows

Window 1 · [No Name] Active
80 columns × 23 lines

Buffers

1 · [No Name] Active
loaded · listed · alternate · beta.txt:2

Tab pages

Tab 1 Active
[No Name]
Before & after
Before
beta.txt:2
Cursor on line 1, column 1

Windows

Window 1 · [No Name] Active
80 columns × 23 lines

Buffers

1 · [No Name] Active
loaded · listed · alternate · beta.txt:2

Tab pages

Tab 1 Active
[No Name]
After
beta one
beta two
beta three
Cursor on line 2, column 1

Windows

Window 1 · beta.txt Active
80 columns × 23 lines

Buffers

1 · [No Name]
loaded · listed · alternate · beta.txt:2
2 · beta.txt Active
loaded · listed · beta one ↩ beta two

Tab pages

Tab 1 Active
beta.txt

Start in Normal mode. The filename under the cursor is beta.txt; variants supporting a following line number use line 2.

Details & Vim help

Example replayed in Vim

Begin editing the file whose name is under the cursor and jump to the line number following the filename. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.