From 6fc6747369cc28a30bb0a2291ad6bb0eb06d1f20 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Tue, 10 Mar 2015 20:55:49 -0500 Subject: [PATCH] Add Quick Quickfix List Navigation to vim til. --- README.md | 1 + vim/quick-quickfix-list-navigation.md | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 vim/quick-quickfix-list-navigation.md diff --git a/README.md b/README.md index 7b7144a..d067f18 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Preview Buffer](vim/previous-buffer.md) - [Quick File Info](vim/quick-file-info.md) - [Quick Man Pages](vim/quick-man-pages.md) +- [Quick Quickfix List Navigation](vim/quick-quickfix-list-navigation.md) - [Rename Current File](vim/rename-current-file.md) - [Split Different](vim/split-different.md) - [View Commit History of a File](vim/view-commit-history-of-a-file.md) diff --git a/vim/quick-quickfix-list-navigation.md b/vim/quick-quickfix-list-navigation.md new file mode 100644 index 0000000..14b5fff --- /dev/null +++ b/vim/quick-quickfix-list-navigation.md @@ -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.