How to pass vim buffer contents through shell command and capture the output to a split window
Fresh3 days ago
Mar 15, 20268711 viewsConfidence Score0%
0%
Problem
I've read lots of threads about running shell commands from vim, lots of documentation on vim commands, .vimrc and all that, but I just can't seem to understand the "ex" language or vim mappings well enough to do what I want, so here I am asking this question. Here goes: I have an open buffer in vi…
Error Output
$ cat ~/myinput.txt | myScript > output.txt
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to pass vim buffer contents through shell command and capture the output to a split window
Low Risk
I would put something like this in my ~/.vimrc or a file with the .vim extension in ~/.vim/plugin/: Then you can just do " ". It might be a good idea to change the command definition to require a filter script name argument to pass to the function i…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix