1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Quick Quickfix List Navigation to vim til.

This commit is contained in:
jbranchaud
2015-03-10 20:55:49 -05:00
parent 955227eb39
commit 6fc6747369
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# Quick Quickfix List Navigation
There are lots of commands that will load up Vim's quickfix list with
results that you'll want to traverse. For instance, if you use [Fugitive's
`:Ggrep`](https://github.com/tpope/vim-fugitive/blob/master/doc/fugitive.txt#L94),
it'll load up the quickfix list with line by line occurrences of the search
term.
You can go forwards and backwards through this list using `:cnext` and
`:cprevious`. Though this gets a bit tedious to type over and over,
especially for long lists of results.
You can quickly navigate forwards and backwards through these results
with two bindings provided by
[vim-unimpaired](https://github.com/tpope/vim-unimpaired).
`]q` is mapped to `:cnext`, for going forwards, and `[q` is mapped to
`:cprevious`, for going backwards.