pipe_converter


Ⅰ. 插件描述

A vim plugin that convert your nested functions into pipe operators

Ⅱ. 基本信息

创建日期:  2016-11-07
使用用户:  1
Github星:  5
插件作者:  marocchino

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'marocchino/pipe-converter'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'marocchino/pipe-converter'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'marocchino/pipe-converter'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/marocchino/pipe_converter

Ⅳ. 文档说明

# PipeConverter

note: It is early release. It has some bugs and lack of use cases.

Demo

asciicast

Config

Vim

" Add this line to your .vimrc file
" Vundle
Plugin 'marocchino/pipe_converter'

" Plug
Plug 'marocchino/pipe_converter'

let g:pipe_converter_command = "~/.vim/plugged/pipe_converter/pipe_converter"


" Change it your own keymap.
nnoremap ec :call PipeConvert()<CR>
nnoremap er :call PipeRevert()<CR>

Usage in shell

$ cd pipe_converter
$ ./pipe_converter "a(b, c, d)"
b |> a(c, d)
$ ./pipe_converter --revert "b |> a |> c(d)"
c(a(b), d)

Escript Build

$ mix escript.build

Test

$ mix test

添加新评论