From the course: Learning Vim

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Start and quit Vim

Start and quit Vim - vi Tutorial

From the course: Learning Vim

Start my 1-month free trial

Start and quit Vim

- [Instructor] Let's start and quit Vim. In the terminal, run Vim. You'll see a greeting message and nothing else. Vim has a minimal interface that keeps you focused on what you're doing. All the tilde signs mean that there are lines not yet inserted. You have an empty file, but the editor itself is bigger. If you'll try writing text, it might or might not work. This is due to the fact that you are in normal mode. We'll talk about normal and other modes in another chapter. To quit Vim, first hit Escape. If you don't have Escape key, you can use Control + C. If you press Control + C again, you will see a message down below that tells you how to quit Vim. Follow the message, and type :qa! and then Enter. And we're back at the command prompt. Let's understand what :qa! means. Colon is the prefix for entering EX command. This is also known as command-line mode. Q is a shortcut for the quit command. A means all buffers. You can have several files open in Vim, and you'd like to quit all of…

Contents