I am trying to get Nvim to execute the ls command by typing :!ls, this is the output:
(interestingly after typing :!ls and pressing enter, the ls gets put in quotes)
my init.vim file looks like this:
The interesting thing is, if I change the shell-setting to cmd, the output of :!ls now looks like this (which is exactly what a new cmd shell looks like):
So it looks like, using the external command, nvim starts a shell but does not execute the ls command. I should also mention that before I created the init.vim file, the external command was working - however - it was using cmd instead of powershell, which I do not want and which is why I created the init.nvim file.
PS: at first I've also tried setting shell=powershell, which didn't work either
PPS: in vim :!ls works as expected