mirror of
https://github.com/Fechin/reference.git
synced 2026-11-20 21:23:11 +03:00
feat: add vim quickfix
This commit is contained in:
1 parent
38961f5b91
commit
17da4c9068
1 file changed
+28
@@ -611,6 +611,34 @@ See: [Ranges](#ranges)
|
||||
|
||||
{.shortcuts}
|
||||
|
||||
## Quickfix List (Advanced)
|
||||
|
||||
### Usage
|
||||
|
||||
The Quickfix List is primarily used to navigate a list of errors/warnings (or file locations) generated by a compiler or linter.
|
||||
|
||||
| Shortcut | Description |
|
||||
| :----------- | :--------------------------------------------------------------- |
|
||||
| `:copen` | Open the quickfix window |
|
||||
| `:cclose` | Close the quickfix window |
|
||||
| `:cnext` | Go to the **next** error/location (`:cn` also works) |
|
||||
| `:cprevious` | Go to the **previous** error/location (`:cp` also works) |
|
||||
| `:clist` | List all errors/locations in the list |
|
||||
| `:cf [file]` | Populate the list with errors from a file (e.g., a compiler log) |
|
||||
|
||||
---
|
||||
|
||||
### Quickfix Do (`:cdo` and `:cfdo`)
|
||||
|
||||
The `:cdo` (quickfix do) and `:cfdo` (quickfix file do) commands execute a command in every file listed in the quickfix list. `:cdo` iterates over every _location_ in the list, while `:cfdo` iterates over every _unique file_ in the list.
|
||||
|
||||
| Command | Description |
|
||||
| :------------ | :-------------------------------------------------------------- |
|
||||
| `:cdo [cmd]` | Execute `[cmd]` for every **location** in the quickfix list. |
|
||||
| `:cfdo [cmd]` | Execute `[cmd]` for every **unique file** in the quickfix list. |
|
||||
|
||||
---
|
||||
|
||||
## Miscellaneous
|
||||
|
||||
### Case {.row-span-2}
|
||||
|
||||
Reference in new issue
Block a user