Monday, August 20, 2012

Re: Help me understand @. macros

Oops, sent before I was done.

a.<BS><CR><Esc>24@.ZZ

a enter insert mode after the "a"
. enter the "." character, a setup for what follows
<BS> delete the "." char
<CR> enter a carrage return, start a new line
<Esc> exit insert mode
24 the count
@. execute the dot register, ie .<bs><cr>
ZZ

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: