sponsor Vim development Vim logo Vim Book Ad

pipe.vim : make vim part of a unix pipe and allow it to edit the pipe contents

 script karma  Rating 19/7, Downloaded by 1309  Comments, bugs, improvements  Vim wiki

created by
peter jakobi
 
script type
utility
 
description
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/
 
install details
Unix: just place pipe.vim command in path.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
pipe.vim 0.1.2 2009-10-10 6.0 peter jakobi fixed security issue with <>
pipe.vim 0.1.1 2009-09-01 6.0 peter jakobi Initial upload
ip used for rating: 44.197.108.187

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github