Monday, October 1, 2012

vim in an edit pipeline

vim can read stdin with 'vim -' but there's currently no way to submit all edited changes to stdout (so far as I can find.) There are plenty of scripts and plugins that allow this kind of functionality, but they all require a file to be written to disk (even if it's a RAMDISK).

Would it be worth pursuing a patch that would allow a saved file (:wq) to send the newly edited text to 'stdout'?

My particular end goal is to handle the editing of encrypted text files, hence the necessity for the inbound and outbound files to never be written to disk except for the encrypted versions of this file.

--
You received this message from the "vim_use" 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

No comments:

Post a Comment