Parinfer in Vimscript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.editorconfig
.gitignore
.travis.yml
CHANGELOG.md
LICENSE.md
README.md
build-tests-file.js
parinfer.vim
perf.vim
tests.vim

README.md

Parinfer in Vimscript Build Status

A Parinfer implementation in Vimscript.

About

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 :)

Usage

TODO: write this section

Run Tests

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

License

ISC License