From 9d9ed144857b686059f3daea7b2b953e382147c1 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 10 Mar 2019 21:22:06 +0100 Subject: Add ACPI ASL and SMT2 support closes #379 closes #378 --- ftplugin/smt2.vim | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ftplugin/smt2.vim (limited to 'ftplugin') diff --git a/ftplugin/smt2.vim b/ftplugin/smt2.vim new file mode 100644 index 00000000..f84af275 --- /dev/null +++ b/ftplugin/smt2.vim @@ -0,0 +1,29 @@ +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'smt2') != -1 + finish +endif + +setlocal iskeyword+=-,:,#,',$ + +" If no command for invoking a solver is specified in ~/.vimrc, test if either +" 'z3' or 'boolector' is accessible through $PATH (in that order) +if !exists("g:smt2_solver_command") + if executable("z3") + let g:smt2_solver_command = "z3" + elseif executable("boolector") + let g:smt2_solver_command = "boolector" + endif +endif + +" If no command line switch for printing the solver's version is specified in +" ~/.vimrc, use '--version' +if !exists("g:smt2_solver_version_switch") + let g:smt2_solver_version_switch = "--version" +endif + +" Mappings +nnoremap r :call smt2#RunSolver() +nnoremap R :call smt2#RunSolverAndShowResult() +nnoremap v :call smt2#PrintSolverVersion() + +" Comment String +setlocal commentstring=;%s -- cgit v1.2.3