[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Only set VISUAL for edit-and-execute-command
From: |
Zachary Santer |
Subject: |
Re: Only set VISUAL for edit-and-execute-command |
Date: |
Fri, 24 May 2024 07:04:19 -0400 |
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.