On 04/11/2011 01:11 AM, eNG1Ne wrote:
Quibbles? can't find a "run to end of file" for macros

Would

  :,$norm @a

work for you? (obviously assuming that your macro was recorded into register "a") Alternatively, if your macro processes more than one line at a time, you could tweak it to

 :,$g/pattern identifying start/norm @a

where "pattern identifying start" finds the lines on which the macro should be run.

Lastly, I think if Vim encounters an error in macro-execution (such as trying to move past the EOF), it stops not only the macro in process but any subsequent runs, so you can issue some ridiculous number of repetitions as your count as long as it exceeds the number in the file:

 999@a

(it might help to temporarily set 'nowrapscan' if your "go to the next place to operate" is a search)

Hope that helps,

-tim


--
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

Reply via email to