Unable to change mode in Vim(Lab exercise)

Good day, I’m taking up the Shell Scripting for Beginners course. I used vim in the lab and whenever I hit the Esc key, I couldn’t go back to Normal mode to save my work. How do I go about doing this in the browser to finish the labs? Thank you in advance.

If you’re in Normal Mode, you can either do “:wq” or “ZZ” which will write the file out and quit.

Hi, thanks for responding. I couldn’t type those in because I’m stuck in Insert Mode. Whenever I hit the escape key, it doesn’t bring me back to Normal mode. So I’m kind of stuck in the Insert Mode in the browser. The cursor just looks like an empty rectangle rather than the solid white block.

If you’re in a lab, make sure that you aren’t running extensions that can interfere with our labs. Also, try accessing the labs from an “incognito” type browser window to see if that helps. It sounds like something is intercepting the esc key, which will make it hard to use vim in that browser.

Thank you! Turned off an extension and it’s now all good.

@thecragmire - please also read this.

1 Like