Wiki

by yszheda

View project onGitHub

Tip 105: Browse the Quick List

Return to the top: <<Practical Vim>>

Commands for Navigating the Quickfix List

Command Action
:cnext Jump to next item
:cprev Jump to previous item
:cfirst Jump to first item
:clast Jump to last item
:cnfile Jump to first item in next file
:cpfile Jump to last item in previous file
:cc N Jump to nth item
:copen Open the quickfix window
:cclose Close the quickfix window

References:

# If you open the file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h quickfix

Meet the Location List

  • Any commands that interact with a location list (:lnext, :lprev, and so on) will act on the list that is bound to the currently active window.
  • quickfix list is globally throughout Vim.