vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 269c1a108cc34e381c7e14e20a99dd7e2bd83e6e parent 952bfdbedcfc6cf0da1f7f1291f4da05026b8e92 Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 13 Feb 2020 13:49:51 +0100 test/vim: skip tests if vim is not available Diffstat:
| M | vim/test.sh | | | 10 | +++++++--- |
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/vim/test.sh b/vim/test.sh @@ -3,8 +3,6 @@ [ -z "$VIS" ] && VIS="../../vis" [ -z "$VIM" ] && VIM="vim" -EDITORS="$VIM $VIS" - TESTS=$1 [ -z "$TESTS" ] && TESTS=$(find . -name '*.keys' | sed 's/\.keys$//g') @@ -14,7 +12,13 @@ TESTS_SKIP=0 export VIS_PATH=. -$VIM --version | head -1 +if type "$VIM" >/dev/null 2>&1; then + EDITORS="$VIM $VIS" + $VIM --version | head -1 +else + EDITORS="$VIS" +fi + $VIS -v for t in $TESTS; do