function edit if set -q EDITOR $EDITOR $argv else printf (set_color red)"warning: EDITOR was not set, using vim as fallback\n"(set_color normal) vim $argv end end