3 ms·
Thanks for your efforts with the Vis editor... You can do this with any other editor using "vipe" from "moreutils" package. It just opens $EDITOR with stdin in
by exDM69 11y ago
Thanks for your efforts with the Vis editor...
You can do this with any other editor using "vipe" from "moreutils" package. It just opens $EDITOR with stdin input (put to a tempfile) and then reads the tempfile and dumps it in stdout.
printf "foo\nbar\nbaz\n" | vipe - | sort # invokes $EDITOR
- martanne 11y agoYes vipe is indeed useful for editors which do not support it by themselves. Personally I find a solution solely based on pipes without temporary files more elegant. I should probably let dvtm fall back to vipe if it is installed. Also I will have to check whether there is an easy fix to make vipe+vis work.