Edit file name under the cursor in a new tab page and jump to the line number following the file name
Example
Normal 0 / 1Normal 1 / 1beta.txt:2Cursor on line 1, column 1beta one
beta two
beta threeCursor on line 2, column 1Edit file name under the cursor in a new tab page and jump to the line number following the file name.
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]
Command applied The Windows panel is an all-tab inventory. Its stored rows/columns belong to each window's own tab layout, not one visible split arrangement. The active window belongs to the active tab; window labels are per-frame example identifiers, not Vim window numbers.
Windows
- Window 1 · [No Name]
80 columns × 23 lines
- Window 2 · beta.txt Active
80 columns × 22 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
[No Name]- Tab 2 Active
beta.txt
Before & after
beta.txt:2Cursor on line 1, column 1Windows
- 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]
beta one
beta two
beta threeCursor on line 2, column 1Windows
- Window 1 · [No Name]
80 columns × 23 lines
- Window 2 · beta.txt Active
80 columns × 22 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
[No Name]- Tab 2 Active
beta.txt
Start in Normal mode. The filename under the cursor is beta.txt; variants supporting a following line number use line 2. When multiple tab pages are listed, The Windows panel is an all-tab inventory. Its stored rows/columns belong to each window's own tab layout, not one visible split arrangement. The active window belongs to the active tab; window labels are per-frame example identifiers, not Vim window numbers.
Details & Vim help
Example replayed in Vim
Edit file name under the cursor in a new tab page and jump to the line number following the file name. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.