A VIM plugin that adds syntax highlighting for the BTOR2 word-level model checking format, i.e. *.btor2 files.
The plugin also provides shortcuts for evaluating the current file using boolector:
<localleader>eevaluates the current file (in a terminal)<localleader>Eevaluates the current file and puts the output in a new split with syntax highlighting<localleader>rreplaces all occurrences of the word under the cursor
Note: Unless you've set <localleader> to a custom key, it is \ (VIM default).
| Plugin Manager | Instructions |
|---|---|
| Pathogen |
|
| Vundle |
|
| manual (discouraged) | Extract the archive or clone the repository into a directory in your runtimepath (e.g. ~/.vim/):
|
If you only care about the syntax highlighting and don't need shortcuts for calling boolector, you're done.
Otherwise, you need to:
- have
boolectorandbtormcin your$PATH, or - set
g:btor2_boolector_commandand/org:btor2_btormc_commandin your~/.vimrcto the commands for callingboolectorandbtormcwith arguments of your choice (e.g.let g:btor2_boolector_command="boolector -m")
Why does VIM not show any syntax highlighting - neither for
*.btor2files nor for others?
Most likely syntax highlighting is simply disabled.
You can enable syntax highlighting by typing :syntax on in VIM or adding syntax on to your ~/.vimrc file.
Why does the ending of a file, e.g.
*.btor2, not affect the plugins loaded by VIM?
Make sure that you have filetype plugins enabled. See |filetype-plugin-on| for details, or simply add the following to your ~/.vimrc:
filetype plugin on
You can always create an issue if you find bugs or think that something could be improved. If you want to tackle an issue or contribute to the plugin feel free to create a pull request.