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>e
evaluates the current file (in a terminal)<localleader>E
evaluates the current file and puts the output in a new split with syntax highlighting<localleader>r
replaces 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
boolector
andbtormc
in your$PATH
, or - set
g:btor2_boolector_command
and/org:btor2_btormc_command
in your~/.vimrc
to the commands for callingboolector
andbtormc
with arguments of your choice (e.g.let g:btor2_boolector_command="boolector -m"
)
Why does VIM not show any syntax highlighting - neither for
*.btor2
files 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.