Using Command Mode

We briefly touched on the INSERT mode of vim, which is where most things happen because it is where the addition of text occurs. After all, that is why you use a text editor.

However, in addition to the traditional editing features, we want to talk about the command mode editing features of vim as well. To enter the command line, press the Escape key. The INSERT keyword in the bottom-left corner of the screen disappears. You are now in the realm of the vi command mode. You can use the cursors (or the k, h, l, and j keys) to move around the text, but you cannot insert anything.

The next sections discuss some basic keys that you can use in command mode that prove very useful.

Was this article helpful?

0 0

Post a comment