I'm currently running Vim in Windows 10. I want to specify in my config file certain settings for when I'm running Vim in Cmder, different settings when I'm running Vim in Alacritty, etc.
When in Cmder, if I run echo &term
I get win32
, and when I run echo $term
I get cygwin
. What's the difference between $term
and &term
, and are these the only ways I can access the name of the terminal? Are one of those correct? The shell I'm running in Cmder is cmd with Cmder's clink configurations.
echo $term
orecho $TERM
? The$
variables are the ones coming from the environment, so you should be able to find/inspect them there as well...:help 'term'
, you'll see how it defaults towin32
on Windows...echo $term
butecho $TERM
gives the same thing. Is there a way to get it to recognize that I'm running Cmder?