Depends on your editor i suppose, but vipe checks the exit code of it [1]. In vim you can exit with an error using :cq
[1]: https://github.com/pgdr/moreutils/blob/f4a811d0a1fafb3d7b0e7...
[1]: https://github.com/pgdr/moreutils/blob/f4a811d0a1fafb3d7b0e7...