Created
October 24, 2010 22:09
-
-
Save tcrayford/644066 to your computer and use it in GitHub Desktop.
Better rspec compiler for vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim compiler file | |
" Language: RSpec | |
" Maintainer: Tim Pope <[email protected]> | |
" Last Change: 2009 Dec 22 | |
" URL: http://vim-ruby.rubyforge.org | |
" Anon CVS: See above site | |
" Release Coordinator: Doug Kearns <[email protected]> | |
if exists("current_compiler") | |
finish | |
endif | |
let current_compiler = "rspec" | |
if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
command -nargs=* CompilerSet setlocal <args> | |
endif | |
let s:cpo_save = &cpo | |
set cpo-=C | |
CompilerSet makeprg=spec | |
CompilerSet errorformat= | |
\%-Z%f:%l:%.%#,%E%\\d%\\+)%.%#,%C%m,%Z, | |
\%+W'%.%#'\ FAILED, | |
\%+I'%.%#'\ FIXED, | |
\%-Cexpected:%.%#, | |
\%-C\ \ \ \ \ got:%.%#, | |
\%E%.%#:in\ `load':\ %f:%l:%m, | |
\%C%f:%l:, | |
\%W%f:%l:\ warning:\ %m, | |
\%E%f:%l:in\ %*[^:]:\ %m, | |
\%E%f:%l:\ %m, | |
\%-Z%\tfrom\ %f:%l, | |
\%-Z%p^%.%#, | |
\%-C%.%#, | |
\%-G%.%# | |
let &cpo = s:cpo_save | |
unlet s:cpo_save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment