# Quickfix

`:cc N`\
跳轉到第 N 項

`:cclose`\
關閉 quickfix 視窗

`:cfirst`\
跳轉到第一項

`:clast`\
跳轉到最後一項

`:cnew[er] [count]`\
到下一個新的錯誤列表。如果指定 `[count]`\
則執行 `[count]` 次。如果已經到達最新的列表，則報錯。

`:cn[ext]`\
跳轉到下一項

`:cnfile`\
跳轉到下一個文件中的第一項

`:col[der] [count]`\
到前一個舊的錯誤列表。如果指定 `[count]`\
則執行 `[count]` 次。如果已經到達最舊的列表，則報錯。

`:copen`\
打開 quickfix 視窗

`:cpfile`\
跳轉到上一個文件中的最後一項

`:cp[rev]` 或 `:cN`\
跳轉到上一項

## 執行指令

`:cdo {cmd}`\
在 quickfix 列表中的每一行執行 `{cmd}`

`:cfdo[!] {cmd}`\
在 quickfix 列表的每個文件上執行 `{cmd}`\
工作方式相當於：

```
:cfirst
:{cmd}
:cnfile
:{cmd}
```

## 位置列表

每個視窗都有一個位置列表\
而 quickfix 列表是一個 vim 只有一個

指令類似 quickfix\
只是改成 l 開頭

`:lopen`\
打開位置列表視窗

`:ln[ext]`\
跳轉到下一項


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kanneg881.gitbook.io/workspace/vim/ex-ming-ling-mo-shi-zhi-ling/quickfix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
