vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit cec0039adb65a69f6feb3c38637e53318752105e
parent 2e30d5fd5595f4070c3bcd3991b4c4c1b4f2ebfb
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat,  9 Jan 2016 15:51:16 +0100

Merge branch 'vis-open' of https://github.com/Pyrohh/vis into master

Diffstat:
Mvis-open | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vis-open b/vis-open @@ -7,7 +7,7 @@ PATTERN="." while [ $# -gt 0 ]; do case "$1" in -h|--help) - echo "usage: $0 [-h] [-p prompt] [file-pattern]" + echo "usage: $(basename $0) [-h] [-p prompt] [file-pattern]" exit 0; ;; -p) @@ -26,7 +26,7 @@ if ! type "$VIS_MENU" >/dev/null 2>&1; then if [ ! -z "$DISPLAY" ] && type "dmenu" >/dev/null 2>&1; then VIS_MENU="dmenu" else - echo "Neither slmenu nor dmenu found" + echo "Neither slmenu nor dmenu found" >&2 exit 1 fi fi