A Parinfer implementation in Vimscript.
I do not plan on actively maintaining this project moving forward. parinfer-lua exists and is much faster than Vimscript. NeoVim users may wish to check out the nvim-parinfer plugin or parinfer-rust.
Having a Parinfer implementation written in Vimscript allows Parinfer to reach vi-based editors easily.
Please note that this project is solely for the library that implements the core Parinfer algorithm; it is not a vi extension that can be used for editing.
This is basically a 1-to-1 port of parinfer.js.
The .json
files in the tests folder are copied directly from the main
Parinfer repo.
This is my first Vimscript project. There is likely lots of room for improvement in this implementation. PR's welcome :)
TODO: write this section
Install node.js
# write the tests.vim file
node build-tests-file.js
# run tests in vim
vim -S tests.vim
Run performance test:
vim -S perf.vim