top | item 1377119

(no title)

volatile | 16 years ago

There are a few instances of unnecessarily keystrokes in this exercise. Moves to the start of the line for a command that will act on the whole line (0shift-D, 0shift-V, 0dd). The 0's aren't required for those. Also a few times it switches to command mode when the editor is already in command mode based on the last step. 0shift-V2j selects 3 lines, not two.

discuss

order

stonemetal|16 years ago

Is shift-d supposed to effect the whole line? Default 7.2 vim on winxp shift-d goes from the cursor to the end of the line making 0shift-d the correct thing for me to delete a line.

The 3wcw to change a misspelled word is also incorrect(for me at least it should be 03wcw)

volatile|16 years ago

You're right, the 0 is required. Now I think about it a little more, if you want to delete all the characters on the line, but not remove the line, then 0shift-D might is good. I tend to do ddO for the same operation.