On Fri, May 24, 2024 at 12:43 AM Mike <nvimmike@gmail.com> wrote:
>
> Ideally, there would be another environment variable that I could hook into
> just for this specific case. For example if the source had something like
> this:
>
> ${EDIT_AND_EXECUTE_COMMAND:-${VISUAL:-${EDITOR:-emacs}}}
>
> Then I could just use EDIT_AND_EXECUTE_COMMAND and leave VISUAL alone.
The command I have in my VISUAL variable specifies opening the file
with bash syntax highlighting. If I used VISUAL for anything besides
edit-and-execute-command, this might not be appropriate. I support
Mike's idea, here.