Ⅰ. 插件描述
Parinfer in VimscriptⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'oakmac/parinfer-viml'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'oakmac/parinfer-viml'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'oakmac/parinfer-viml'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/oakmac/parinfer-viml
Ⅳ. 文档说明
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.vimRun performance test:
vim -S perf.vimLicense
[ISC License]