How can I break out of a series of commandline commands from within the commandline?
Here is my command line, it finds the text "XXXX" and replaces that text with an incremented number (variable i) up to the max replacement value of 3999. :let i=1120|%g/XXXX/s/\zsXXXX\ze/\=i/|let i=i+1|if (i > 3999)|break| endif Everything works great except for the "break" statement. When the "break" is hit it generates an error since break is only intended for use with a while statement. I've tried putting the "<Esc>" text in place of the break statement, I've tried inserting a ctrl-c in line... and I can't make any of them work. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
