Vim

Vim: Quickfix List

The quickfix list is a list of file locations along with a number of builtin commands to help navigate the list.

The canonical use case is compiler error messages. Using the quickfix list you can quickly navigate to the exact location in the affected file, correct the error, and then move on to the next error.

Quickfix is not restricted to compilers, a number of Vim tools (e.g. :vimgrep) also send output to the quickfix list.

The quickfix list acts like any other window and is usually opened automatically by the tools that are interacting with it. You can navigate the list using j and k and press enter to jump to the currently selected location. You can navigate the quickfix list even when the quickfix window is closed (this is surprisingly useful).

Commands:

The vim-unimpaired plugin adds useful convenience mappings:

The quickfix list is global to the current vim session, but Vim remembers up to ten quickfix lists. When a new quickfix list is created, the previous ones are pushed down the stack. You can access previous quickfix lists using the following commands:

Location Lists

While the quickfix list is global to the current vim session, location lists are window specific.

They have there own (similar) set of commands:

The vim-unimpaired plugin also adds useful convenience mappings for location lists:

Resources

:help quickfix.txt

Tools

Web

Languages

Data