Skip to content

Instantly share code, notes, and snippets.

@openmailbox
Last active August 29, 2015 14:06
Show Gist options
  • Save openmailbox/1fc1eca3dd000d6e457e to your computer and use it in GitHub Desktop.
Save openmailbox/1fc1eca3dd000d6e457e to your computer and use it in GitHub Desktop.
If you're sick of syntastic taking forever to check your dart files, make sure you have vim-dispatch (https://github.com/tpope/vim-dispatch) installed and stick this in your vimrc. Doesn't help the startup time of dartanalyzer, but at least your main thread won't block.
" dart setup
autocmd FileType dart set errorformat+=%.%#\\\|%.%#\\\|%.%#\\\|%f\\\|%l\\\|%c\\\|%.%#\\\|%m
autocmd FileType dart set makeprg=dartanalyzer\ --machine\ %
autocmd BufWritePre *.dart Make
let g:syntastic_mode_map = { "mode": "active",
\ "passive_filetypes": ["dart"] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment