Original question
I am using WSL with Ubuntu installed from the Microsoft Store. Until recently, I was able to use vim
without any issues. Since yesterday, I have observed that typing vim
into my command prompt and pressing enter suspends the prompt. When I try to get out by pressing Ctrl+C, that's when vim actually opens. It seems to work with no issues, but I am frustrated that it won't open immediately after I press enter.
Has anyone ever observed this behavior? How can I fix it? Thanks
Edits
response to @muru
➜ type -a vimvim is /usr/bin/vimvim is /bin/vim➜ printenv TERMxterm-256color
vim -Nu NONE
also exhibits the same behavior, it suspends the prompt until I press Ctrl+C. I guess that means the issue might not be related to vimrc
?
response to @NotTheDr01ds
wsl -e vim
successfully triggers a vim instance with no delay in Powershell (it works as expected).wsl -e bash --noprofile --norc
appears to open abash-5.0$
prompt. Following this with avim
command also triggers a vim instance with no delay in Powershell (it works as expected).wsl -u root
followed by appears to open aroot@LAPTOP_NAME:/mnt/c/Users/username#
prompt. Following this with avim
command also triggers a vim instance with no delay in Powershell (it works as expected).