Vim plugin for running dartanalyzer asynchronously.
This plugin is tested on Vim (latest version) on Ubuntu 14.04 64-bit.
dartanalyzer
(included in dart-sdk)- Vim plugins
- Shougo/vimproc.vim
- jceb/vim-hier [optional]
- dannyob/quickfixstatus [optional]
Install this plugin and open *.dart
file in vim.
This plugin will automatically start dartanalyzer in background (at the first time, this process will take a few seconds).
Then syntax errors and warnings will be highlighted.
Errors and warnings are set in vim's quickfix list.
By using :copen
command, you can see all positions of errors/warnings, and you can jump to the line.
If filetype
is not set automatically, try dart-lang/dart-vim-plugin.
Otherwise, add the following line in your .vimrc
.
autocmd BufNewFile,BufRead *.dart set filetype=dart
See :help dartanalyzer
.