Skip to content

oakmac/parinfer-viml

Repository files navigation

Parinfer in Vimscript Build Status

A Parinfer implementation in Vimscript.

Project Status (Dec 2022)

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.

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

About

Parinfer in Vimscript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •