Dear all,

I made a 40-line script that lets you call Vim commands for Unix pipeline
filtering, like sed or awk: https://github.com/MilesCranmer/vim-stream.

As an example,

> cat file.txt | vims -l 'f|d$'

will filter the output of "cat file.txt" by running the Vim command ‘f|d$’
on each line to delete everything after "|". The repo gives the other
options.

I’m eager to hear: are you potentially interested in integrating these
modes into Vim itself? The code looks tiny but pulls a lot of weight; I use
"vim-stream" for batch text processing in nearly every script I write. I no
longer spend time hunting for awk/sed commands, since Vim is ingrained in
my fingers.

I'm interested to hear your thoughts.
Cheers,
Miles Cranmer

--
-------------------------------------------------------------------------------------------
twitter.com/MilesCranmer
-------------------------------------------------------------------------------------------

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CABBNNymgeyLu1v9Y8SPzf4a5dQ7GGTCNPRBN7Em7%3DhCe8OfCTg%40mail.gmail.com.

Raspunde prin e-mail lui