Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2817

VIM doesn't open immediately after I press enter

$
0
0

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 a bash-5.0$ prompt. Following this with a vim command also triggers a vim instance with no delay in Powershell (it works as expected).
  • wsl -u root followed by appears to open a root@LAPTOP_NAME:/mnt/c/Users/username# prompt. Following this with a vim command also triggers a vim instance with no delay in Powershell (it works as expected).

Viewing all articles
Browse latest Browse all 2817

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>