After the command :set equalprg=echo.sh
, the equals command simply deletes the specified region. Here is echo.sh
:
#!/bin/bash
echo "$1"
Where is the input? I can assign equalprg
to something like astyle
and it works fine, taking text from vim on stdin
. So why is there nothing on stdin
for a bash script? The same thing happens when setting formatprg
to a bash script too.