Vim Techniques 05 - Quickfix List / Location List

Опубликовано: 18 Июнь 2026
на канале: haxpor
8,607
124

Quickfix list / Location list features can be regarded as a global / local error-list to fix in general. It provides convenient jumping between point of interests from our search target. This means, we have to populate the list (e.g. :vimgrep) first.

This video goes through topics of

General usage information about Quickfix list / Location list
Hands-on experience on C++ simple project utilizing such features to jump between locations
Extra: populate the list from GCC's compilation error, so you can start fixing those errors in no time.

I'm using WSL 2 on Windows as most of my current works depends on Windows at the time being. But it will work similarly on other platforms.

Chapters
0:00 Introduction
1:12 Demo project setup
2:37 Populate Quickfix list (qfl) with :vimgrep
05:10 Open qfl with :copen
05:49 Close qfl with :cclose
06:02 Jump to first entry in qfl :cfirst
06:09 Jump to next entry in qfl :cnext
06:21 Jump to previous entry in qfl :cprev
06:28 Jump to last entry in qfl :clast
06:42 See all qfl with :chistory
07:50 Jump to specific qfl with :(number)chistory
08:46 Switch to older qfl with :colder
09:39 Difference between Quickfix list and Location list
10:46 Populate Location list (ll) with :lvimgrep
11:27 Open ll with :lopen
11:56 Close ll with :lclose
12:19 Jump to last entry in ll with :llast
12:22 Jump to first entry in ll with :lfirst
12:32 Effect of :lopen but not populated yet
13:47 Summary of usage for qfl and ll
14:30 Qfl / Ll with GCC
15:44 Populate error from GCC with "vi -q error-file"

#vim #vi #quickfixlist #locationlist #haxpor

---
Follows on socials
Website: https://wasin.io
Twitter: @haxpor
Github: https://github.com/haxpor