Last active
January 18, 2022 03:37
-
-
Save coffeebe4code/ec8ef729594afaeb487bccbe62979c33 to your computer and use it in GitHub Desktop.
This file contains 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
au FileType rust set compiler=rs |
This file contains 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/rs.vim | |
set makeprg=cargo | |
let &efm = '' | |
" Random non issue stuff | |
let &efm .= '%-G%.%#aborting due to previous error%.%#,' | |
let &efm .= '%-G%.%#test failed, to rerun pass%.%#,' | |
" Capture enter directory events for doc tests | |
let &efm .= '%D%*\sDoc-tests %f%.%#,' | |
" Doc Tests | |
let &efm .= '%E---- %f - %o (line %l) stdout ----,' | |
let &efm .= '%Cerror%m,' | |
let &efm .= '%-Z%*\s--> %f:%l:%c,' | |
" Unit tests && `tests/` dir failures | |
" This pattern has to come _after_ the doc test one | |
let &efm .= '%E---- %o stdout ----,' | |
let &efm .= '%Zthread %.%# panicked at %m\, %f:%l:%c,' | |
let &efm .= '%Cthread %.%# panicked at %m,' | |
let &efm .= '%+C%*\sleft: %.%#,' | |
let &efm .= '%+Z%*\sright: %.%#\, %f:%l:%c,' | |
" Compiler Errors and Warnings | |
let &efm .= '%Eerror%m,' | |
let &efm .= '%Wwarning: %m,' | |
let &efm .= '%-Z%*\s--> %f:%l:%c,' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment