TOOL ยป VIM

Quickfix

Overview โ€‹

The quickfix list is filled on commands like :vimgrep or :grep.

Cycle list โ€‹

CommandDescriptionArgument default
:ccJump to location at index NR.NR: current index
:cnJump COUNT positions forward.COUNT: 1
:cpJump COUNT positions backward.COUNT: 1
:clist :copenList or open window with all quickfixes.

Manually populate the quick list โ€‹

Fill with the output of git grep.

  • The option -n / --line-number (prefix the line number to matching lines) is needed.
  • The option --column is optional.
vim
:cex system("git grep -n --column pattern")