Step 2 of 7

5. Visual Mode

Visual line mode

Most of the time — especially if you’re a programmer — you’ll want to select lines rather than individual characters. In these situations, visual line mode comes in handy. It works in the same way as visual mode, but on a line-by-line basis.

To enter visual line mode, hit V in the editor. You’ll notice that navigations that move the cursor left and right have no affect on the region that’s selected (but they still move the cursor).

This time, delete all of the lines that are filled with ? characters. The key maps in visual line mode are the same as in visual mode, so use x to delete. Work through the checklist below.

  1. Enter visual line mode A capital V this time — the mode indicator will switch to VISUAL LINE when you press V.
  2. Delete every line of ? characters Extend the selection over whole lines of ?s, then press x. Repeat until they're all gone.
Enter visual line mode A capital V this time — the mode indicator will switch to VISUAL LINE when you press V.

Next: Delete every line of ? characters

Loading editor…