vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 12f5494ece1c11f40be59ad7ffd5f282bc6986bf parent cec0039adb65a69f6feb3c38637e53318752105e Author: Michael Reed <m.reed@mykolab.com> Date: Sat, 9 Jan 2016 15:05:30 -0500 vis-open: Fix indentation It was hard to read with everything on the same indentation level. Diffstat:
| M | vis-open | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/vis-open b/vis-open @@ -6,16 +6,16 @@ PATTERN="." while [ $# -gt 0 ]; do case "$1" in - -h|--help) + -h|--help) echo "usage: $(basename $0) [-h] [-p prompt] [file-pattern]" exit 0; ;; - -p) + -p) VIS_MENU_ARGS="$VIS_MENU_ARGS -p $2" shift shift ;; - *) + *) PATTERN=$* break ;;