summaryrefslogtreecommitdiff
path: root/halfway/functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'halfway/functions.zsh')
-rw-r--r--halfway/functions.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/halfway/functions.zsh b/halfway/functions.zsh
index 54c813b..9aae54a 100644
--- a/halfway/functions.zsh
+++ b/halfway/functions.zsh
@@ -28,16 +28,16 @@ pcopy() {
}
vinfo() {
- INFOPATH="$XDG_DATA_HOME/info:$INFOPATH" $EDITOR -R -M -c "Info $@" +only
+ INFOPATH="$XDG_DATA_HOME/info:$INFOPATH" ${EDITOR:-nvim} -R -M -c "Info $@" +only
}
vn3() {
if [ "$#" -gt 0 ]; then
local direc="$(printf %q "$1")"
shift
- $EDITOR -c "NnnExplorer $direc" "$@"
+ ${EDITOR:-nvim} -c "NnnExplorer $direc" "$@"
else
- $EDITOR -c NnnExplorer
+ ${EDITOR:-nvim} -c NnnExplorer
fi
}