Skip to content

Instantly share code, notes, and snippets.

@briandunn
Last active December 28, 2015 08:29
Show Gist options
  • Save briandunn/7472441 to your computer and use it in GitHub Desktop.
Save briandunn/7472441 to your computer and use it in GitHub Desktop.
Notes on my QuickFix talk at VimChi
QuickFix
--------
Overview:
rational: Vim has a lot of great ways to navigate a project. But if your computer already knows where the problem is, we should be able to jump straight there without searching again.
:help quickfix
Supports "edit-compile-edit"
Inspired by an Amega compiler
+quickfix flag:
$ vim --version | grep quickfix
Useful any time you need a list of locations in your document
internal:
* :vimgrep
* :make
plugins:
* :Ggrep (fugitive)
* :Ack
* :Rake
:make
-----
Two types of lists:
error window
location list
* demonstrate make
:cw opens the error list
:col opens the previous one
:cnew opens the next one
jump to an error's location with <Enter>
location lists are associated with a window, quickfix is vim instance wide.
:lolder (lol)
:lnewer
like lcd vs cd.
custom makeprg of % can be handy to execute the current buffer
:Make
-----
* [demo video](http://vimeo.com/tpope/vim-dispatch-teaser)
:Rake
-----
* works seamlessly with dispatch.vim to run your rake tasks asynchronously .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment