Ⅰ. 插件描述
make vim part of a unix pipe and allow it to edit the pipe contentsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/pipe-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/pipe-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/pipe-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/pipe.vim
Ⅳ. 文档说明
find | pipe.vim | nl
find | xargs pipe.vim
Simplify invoking vim within Unix pipes for situations not covered by a simple vi -: I just too often forget to properly add all the required >/dev/tty </dev/tty and similar in pipes and xargs commands.
All input is collected into a temporary file, prefixed with a small help text. Vim then edits this file with its IO being redirected to the tty. After editing the file is printed to stdout and serves as input for the next pipeline stage.
Some more information can be found in the comments in the script itself.
Note that the name is just my way of not cluttering ~/bin: pipe.vim is a perl script for use with pipes that is a helper for vim. It is NOT a vim macro.
The current version is available from:
http://jakobi.github.com/script-archive-doc/
http://github.com/jakobi/script-archive/tree/master/vim/