Vi For Smarties

Quiz Two, Answer Four


:map @ 3o<Ctrl-v><Esc>k5i <Ctrl-v><Esc>a

This macro leaves the user in insert mode when applied. To use this macro, position the cursor on the line that is immediately above the space where you want the reply text to appear. For extra credit, try making an alternate macro that allows you to position the cursor on the line that is immediately below the space where you want the reply text to appear.

If you didn't know this answer, you should stop taking this quiz and return to Lesson Five and Lesson Seven.


Copyright © 2001 jerry_y_wang@yahoo.com. All rights reserved.