[vim/vim] Vim as a pipe editor and vipe (Discussion #17977)

14 views
Skip to first unread message

avidseeker

unread,
Aug 12, 2025, 4:38:09 PMAug 12
to vim/vim, Subscribed

Related to discussion: #17974

I was wondering if that Vim or Neovim API could be used for using a buffer to output to stdout.

Vim happily accepts stdin like this echo test | vim, but the problem with it outputting to stdout led to wrapper solutions such as vipe from moreutils:

NAME
       vipe - edit pipe

SYNOPSIS
       command1 | vipe | command2

DESCRIPTION
       vipe allows you to run your editor in the middle of a unix pipeline and edit
       the data that is being piped between programs. Your editor will have the full
       data being piped from command1 loaded into it, and when you close it, that
       data will be piped into command2.

So my questin is whether it's possible to make those wrapper scripts obsolete by supporting this natively on Vim/Neovim.


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/17977@github.com>

Phạm Bình An

unread,
Aug 13, 2025, 12:49:50 PMAug 13
to vim/vim, Subscribed

it's possible to make those wrapper scripts obsolete by supporting this natively on Vim/Neovim

I don't think so, vipe supports all editors, not just Vim/Neovim

Also what exactly do you want to Vim/Nvim to write to stdout by default? Note that it could breaks CI that already use stdout of Vim/Nvim instance.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/17977/comments/14095292@github.com>

Phạm Bình An

unread,
Aug 13, 2025, 1:00:04 PMAug 13
to vim/vim, Subscribed

whether it's possible to make those wrapper scripts obsolete by supporting this natively on Vim/Neovim

I don't think so, according to its document, vipe supports all editors, not just Vim/Neovim.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/17977/comments/14095393@github.com>

Reply all
Reply to author
Forward
0 new messages