From 031f439dfd899a2125be810f377ffd7ef35836f1 Mon Sep 17 00:00:00 2001 From: Sreeram Boyapati Date: Thu, 25 Aug 2016 12:43:00 +0530 Subject: [PATCH] If $EDITOR is null, set it to vim --- Examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples.md b/Examples.md index 8ba1f6e..a112fed 100644 --- a/Examples.md +++ b/Examples.md @@ -416,7 +416,7 @@ ftags() { line=$( awk 'BEGIN { FS="\t" } !/^!/ {print toupper($4)"\t"$1"\t"$2"\t"$3}' tags | cut -c1-80 | fzf --nth=1,2 - ) && $EDITOR $(cut -f3 <<< "$line") -c "set nocst" \ + ) && ${EDITOR:-vim} $(cut -f3 <<< "$line") -c "set nocst" \ -c "silent tag $(cut -f2 <<< "$line")" } ```