This would be great to have support for any language, but the thing I want now is just bash.
I have a shell script which has all of its code inside a multiline heredoc string which is sent to gnome-terminal. Vim shows the entire code as a string (naturally).
I'd like to be able to, say, add begin and end comments that can make Vim syntax-highlight this string as bash code instead of a string.
Obviously I can easily factor it out into two scripts, but it would be nice and neat to be able to do this.
:help sh-embed– D. Ben Knoble Jan 18 '22 at 21:58