Burak Gorkemli wrote:
> I recently faced with a freeze in vim while trying to count lines with
> the following substitute command (I have omitted the range param for
> simplicity):
>
> :s/\n//gn
>
> The problem seems to be related with the 'g' flag, since the following
> command without 'g' is working properly:
>
> :s/\n//n
>
> I have tested this in both Windows (7.0 & 7.1) and Linux (7.0, hasn't
> checked 7.1 yet) versions, and the freeze case can be produced in all
> of them.
I can reproduce it. One more for the todo list.
--
No engineer can take a shower without wondering if some sort of Teflon coating
would make showering unnecessary.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---