Vim Recall繁體中文

Open location window

:lopen

Example

Normal 0 / 2
alpha one
alpha two
alpha three
Cursor on line 1, column 1

Open location window.

Location list · Example diagnostics

1 · alpha.txt:1 Active
first issue
2 · alpha.txt:3
second issue
3 · beta.txt:2
third issue

Windows

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

Buffers

2 · alpha.txt Active
loaded · listed · alpha one ↩ alpha two
3 · beta.txt
unloaded · unlisted
Before & after
Before
alpha one
alpha two
alpha three
Cursor on line 1, column 1

Location list · Example diagnostics

1 · alpha.txt:1 Active
first issue
2 · alpha.txt:3
second issue
3 · beta.txt:2
third issue

Windows

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

Buffers

2 · alpha.txt Active
loaded · listed · alpha one ↩ alpha two
3 · beta.txt
unloaded · unlisted
After
alpha.txt|1 col 1| first issue
alpha.txt|3 col 1| second issue
beta.txt|2 col 1| third issue
Cursor on line 1, column 1

Location list · Example diagnostics

1 · alpha.txt:1 Active
first issue
2 · alpha.txt:3
second issue
3 · beta.txt:2
third issue

Windows

Window 1 · alpha.txt
80 columns × 11 lines
Window 2 · [No Name] Active
80 columns × 10 lines · diagnostics

Buffers

2 · alpha.txt
loaded · listed · alternate · alpha one ↩ alpha two
3 · beta.txt
unloaded · unlisted
4 · [No Name] Active
loaded · listed · alpha.txt|1 col 1| first issue ↩ alpha.txt|3 col 1| second issue

Start in Normal mode. Diagnostics are prepared with literal entries referring only to temporary example files. The list panel shows its actual selected entry and contents.

Details & Vim help

Example replayed in Vim

Open location window. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :lop[en] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.