Cómo saber si vim se está ejecutando en la línea de comandos frente a powershell
Me gustaría hacer una función que haga lo siguiente
if (vim is running in powershell)
call system("only works in powershell")
else
echo "Skipping powershell command"
¿Alguien sabe cómo decir de qué programa se está ejecutando vim?
EDITAR:echo &term
Salidas "win32" en ambos casos.