You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Non-trivial Dafny programs may take significantly more time to verify than a
compiler would take to compile a single source file-- particularly if you are
using include directives in your Dafny source. Unfortunately, Vim, being
single-threaded, will freeze while Dafny is verifying your sources. We strongly
recommend that you set Syntastic up to check your Dafny sources passively
(on-demand) for this reason.
Add the following to your .vimrc to set this up:
" (optional) set your leader key (the default is <\>)let mapleader=","" Tell Syntastic to:" - check files on save." - but only check Dafny files when requested.letg:syntastic_mode_map= {
\ "mode": "active",
\ "passive_filetypes": ["dafny"] }
" (optional) map "save and check current file" to <leader>cnoremap<Leader>c :w<CR>:SyntasticCheck<CR>
Now, you can use :SyntasticCheck or, if you elected to do so, ,c to check
your dafny file.
License
vim-loves-dafny is distributed under the Microsoft Public License, which same
license that Dafny itself uses. See
LICENSE for
more details.
Planned Improvements
more vibrant syntax highlighting.
About
a vim plugin for Dafny, a verified programming language.