Hi,

> $ cmd1 | st -e 'vipe' | cmd2

You could make a script that saves stdin in a temp file, starts st with
vim and the file name, then once st returns, output the temp file in
stdout and delete it.

The following does exactly what you want:

```
#!/usr/bin/sh

FILE="$(mktemp)"
cat > "$FILE"

st -e vim "$FILE"

cat "$FILE"
rm "$FILE"
```

- syg

Reply via email to